Changeset 78 for trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vbe/SelfTest/src/main.cpp
- Timestamp:
- Mar 27, 2008, 11:04:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vbe/SelfTest/src/main.cpp
r76 r78 14 14 err (_("<Usage> %s name_instance list_params.\n"),argv[0]); 15 15 err (_("list_params is :\n")); 16 err (_(" * ()\n")); 16 17 17 18 exit (1); … … 24 25 #endif 25 26 { 26 if (argc != 2+NB_PARAMS)27 if (argc != static_cast<int>(2+NB_PARAMS)) 27 28 usage (argc, argv); 28 29 29 uint32_t 30 uint32_t x = 1; 30 31 31 const string name =argv[x++];32 string name = argv[x++]; 32 33 //const uint32_t size_data = atoi(argv[x++]); 33 34 //const uint32_t nb_port = atoi(argv[x++]); 34 35 36 int _return = EXIT_SUCCESS; 35 37 try 36 38 { … … 46 48 catch (morpheo::ErrorMorpheo & error) 47 49 { 48 msg (_("<%s> : %s.\n"),name.c_str(), error.what ());49 exit (EXIT_FAILURE);50 msg (_("<%s> :\n%s"),name.c_str(), error.what ()); 51 _return = EXIT_FAILURE; 50 52 } 51 53 catch (...) 52 54 { 53 55 err (_("<%s> : This test must generate a error.\n"),name.c_str()); 54 exit (EXIT_FAILURE);56 _return = EXIT_FAILURE; 55 57 } 56 58 57 return ( EXIT_SUCCESS);59 return (_return); 58 60 } 59
Note: See TracChangeset
for help on using the changeset viewer.