Changeset 131 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/SelfTest/src/main.cpp
- Timestamp:
- Jul 8, 2009, 8:40:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/SelfTest/src/main.cpp
r128 r131 315 315 num_thread_valid [i] = true; 316 316 317 int _return = EXIT_SUCCESS; 317 318 try 318 319 { … … 383 384 catch (morpheo::ErrorMorpheo & error) 384 385 { 385 msg (_("%s\n"),error.what ()); 386 exit (EXIT_FAILURE); 387 } 388 catch (...) 389 { 390 err (_("This test must generate a error.\n")); 391 exit (EXIT_FAILURE); 386 msg (_("<%s> :\n%s"),name.c_str(), error.what ()); 387 _return = EXIT_FAILURE; 388 } 389 390 try 391 { 392 if (_return == EXIT_SUCCESS) 393 TEST_OK("OOO_Engine : no error"); 394 else 395 TEST_KO("OOO_Engine : a lot of error"); 396 } 397 catch (morpheo::ErrorMorpheo & error) 398 { 399 // msg (_("<%s> :\n%s"),name.c_str(), error.what ()); 400 _return = EXIT_FAILURE; 392 401 } 393 402 … … 450 459 DELETE1(num_thread_valid , nb_thread); 451 460 452 return ( EXIT_SUCCESS);461 return (_return); 453 462 } 454 463
Note: See TracChangeset
for help on using the changeset viewer.