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/Register_unit/SelfTest/src/main.cpp

    r88 r131  
    8585    _nb_inst_retire_rob  [i] = atoi(argv[x++]);
    8686 
     87  int _return = EXIT_SUCCESS;
    8788  try
    8889    {
     
    114115  catch (morpheo::ErrorMorpheo & error)
    115116    {
    116       cout << "<" << name << "> : " <<  error.what ();
    117       exit (EXIT_FAILURE);
    118     }
    119   catch (...)
    120     {
    121       cerr << "<" << name << "> : This test must generate a error" << endl;
    122       exit (EXIT_FAILURE);
     117      msg (_("<%s> :\n%s"),name.c_str(), error.what ());
     118      _return = EXIT_FAILURE;
    123119    }
    124120
    125   return (EXIT_SUCCESS);
     121  try
     122    {
     123      if (_return == EXIT_SUCCESS)
     124        TEST_OK("OOO_Engine : no error");
     125      else
     126        TEST_KO("OOO_Engine : a lot of error");
     127    }
     128  catch (morpheo::ErrorMorpheo & error)
     129    {
     130//       msg (_("<%s> :\n%s"),name.c_str(), error.what ());
     131      _return = EXIT_FAILURE;
     132    }
     133
     134  return (_return);
    126135}
    127136
Note: See TracChangeset for help on using the changeset viewer.