diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-10 16:31:43 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-17 09:17:36 +0100 |
commit | 9391f6d6637c752046cdfd89ae2eeea147496e44 (patch) | |
tree | fe6ad09c222cdf0489414d4a5a644b10845de333 /testsuites/samples/cdtest/main.cc | |
parent | sapi: Add <rtems/test.h> (diff) | |
download | rtems-9391f6d6637c752046cdfd89ae2eeea147496e44.tar.bz2 |
tests/samples: Use <rtems/test.h>
Diffstat (limited to 'testsuites/samples/cdtest/main.cc')
-rw-r--r-- | testsuites/samples/cdtest/main.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuites/samples/cdtest/main.cc b/testsuites/samples/cdtest/main.cc index 5edfc7020d..23a98fc26f 100644 --- a/testsuites/samples/cdtest/main.cc +++ b/testsuites/samples/cdtest/main.cc @@ -23,6 +23,7 @@ */ #include <rtems.h> +#include <rtems/test.h> #include <cstdio> #include <cstdlib> @@ -31,6 +32,8 @@ #include <iostream> #endif +const char rtems_test_name[] = "CONSTRUCTOR/DESTRUCTOR"; + extern "C" { #include <tmacros.h> @@ -176,12 +179,11 @@ rtems_task main_task( rtems_task_argument ) { - printf( "\n\n*** CONSTRUCTOR/DESTRUCTOR TEST ***\n" ); + TEST_BEGIN(); cdtest(); - printf( "*** END OF CONSTRUCTOR/DESTRUCTOR TEST ***\n\n\n" ); - + TEST_END(); printf( "*** TESTING C++ EXCEPTIONS ***\n\n" ); |