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