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