source:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/SelfTest/src/main.cpp
@
142
Last change on this file since 142 was 113, checked in by , 15 years ago | |
---|---|
|
|
File size: 888 bytes |
Rev | Line | |
---|---|---|
[73] | 1 | /* |
2 | * $Id: main.cpp 113 2009-04-14 18:39:12Z rosiere $ | |
3 | * | |
[113] | 4 | * [ Description ] |
[73] | 5 | * |
6 | */ | |
7 | ||
[113] | 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/SelfTest/include/top.h" |
[73] | 9 | |
[113] | 10 | #ifndef MTI_SYSTEMC |
11 | # ifndef SYSTEMC | |
[73] | 12 | int main (int argc, char * argv[]) |
[113] | 13 | # else |
[73] | 14 | int sc_main (int argc, char * argv[]) |
[113] | 15 | # endif |
[73] | 16 | { |
[113] | 17 | int _return = EXIT_SUCCESS; |
[73] | 18 | |
[113] | 19 | try |
20 | { | |
21 | top * my_top = new top ("my_top",argc,argv); | |
[73] | 22 | |
[113] | 23 | my_top->test(); |
[73] | 24 | |
[113] | 25 | delete my_top; |
26 | } | |
27 | catch (morpheo::ErrorMorpheo & error) | |
28 | { | |
29 | msgError(_("%s\n"),error.what ()); | |
30 | _return = EXIT_FAILURE; | |
31 | } | |
32 | ||
[73] | 33 | try |
34 | { | |
[113] | 35 | if (_return == EXIT_SUCCESS) |
36 | TEST_OK("Execute_queue : no error"); | |
37 | else | |
38 | TEST_KO("Execute_queue : a lot of error"); | |
[73] | 39 | } |
40 | catch (morpheo::ErrorMorpheo & error) | |
41 | { | |
[113] | 42 | // msgError(_("<%s> :\n%s"),name.c_str(), error.what ()); |
43 | _return = EXIT_FAILURE; | |
[73] | 44 | } |
45 | ||
[113] | 46 | return _return; |
[73] | 47 | } |
[113] | 48 | #endif |
Note: See TracBrowser
for help on using the repository browser.