Ignore:
Timestamp:
Jul 8, 2009, 8:40:08 PM (15 years ago)
Author:
rosiere
Message:

1) add constant method
2) test with systemc 2.2.0

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  
    315315    num_thread_valid [i] = true;
    316316
     317  int _return = EXIT_SUCCESS;
    317318  try
    318319    {
     
    383384  catch (morpheo::ErrorMorpheo & error)
    384385    {
    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;
    392401    }
    393402
     
    450459  DELETE1(num_thread_valid              , nb_thread);
    451460
    452   return (EXIT_SUCCESS);
     461  return (_return);
    453462}
    454463
Note: See TracChangeset for help on using the changeset viewer.