source: rtems/testsuites/samples/cdtest/cdtest.scn

Last change on this file was 05006c90, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 9, 2016 at 7:25:47 AM

cdtest: Print proper begin/end of test messages

  • Property mode set to 100644
File size: 2.1 KB
Line 
1*** BEGIN OF TEST CONSTRUCTOR/DESTRUCTOR ***
2GLOBAL: Hey I'm in base class constructor number 1 for 0x2052154.
3GLOBAL: Hey I'm in base class constructor number 2 for 0x2052148.
4GLOBAL: Hey I'm in derived class constructor number 3 for 0x2052148.
5
6
7*** BEGIN OF TEST CONSTRUCTOR/DESTRUCTOR ***
8LOCAL: Hey I'm in base class constructor number 4 for 0x2057978.
9LOCAL: Hey I'm in base class constructor number 5 for 0x2057984.
10LOCAL: Hey I'm in base class constructor number 6 for 0x2057990.
11LOCAL: Hey I'm in base class constructor number 7 for 0x205799c.
12LOCAL: Hey I'm in derived class constructor number 8 for 0x205799c.
13IO Stream not tested
14LOCAL: Hey I'm in derived class destructor number 8 for 205799C.
15Derived class - Instantiation order 8
16LOCAL: Hey I'm in base class destructor number 7 for 205799C.
17Derived class - Instantiation order 8
18LOCAL: Hey I'm in base class destructor number 6 for 2057990.
19Derived class - Instantiation order 6
20LOCAL: Hey I'm in base class destructor number 5 for 2057984.
21Derived class - Instantiation order 5
22LOCAL: Hey I'm in base class destructor number 4 for 2057978.
23Derived class - Instantiation order 5
24*** TESTING C++ EXCEPTIONS ***
25
26foo_function() catch block called:
27   < foo_function() throw this exception  >
28Success catching a char * exception
29foo_function() re-throwing execption...
30throw std::runtime: caught: thrown std::runtime object
31throw an instance based exception
32RtemsException raised=File:../../../../../../../rtems/c/src/../../testsuites/samples/cdtest/main.cc, Line:229, Error=55
33Success catching RtemsException...
34RtemsException ---> File:../../../../../../../rtems/c/src/../../testsuites/samples/cdtest/main.cc, Line:229, Error=55
35Exceptions are working properly.
36Global Dtors should be called after this line....
37GLOBAL: Hey I'm in derived class destructor number 3 for 2052148.
38Derived class - Instantiation order 3
39GLOBAL: Hey I'm in base class destructor number 2 for 2052148.
40Derived class - Instantiation order 3
41GLOBAL: Hey I'm in base class destructor number 1 for 2052154.
42Derived class - Instantiation order 1
43*** END OF TEST CONSTRUCTOR/DESTRUCTOR ***
Note: See TracBrowser for help on using the repository browser.