diff options
Diffstat (limited to 'testsuites/samples/cdtest')
-rw-r--r-- | testsuites/samples/cdtest/main.cc | 8 | ||||
-rw-r--r-- | testsuites/samples/cdtest/system.h | 3 |
2 files changed, 8 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" ); diff --git a/testsuites/samples/cdtest/system.h b/testsuites/samples/cdtest/system.h index f9f13c2e18..90789fc1ed 100644 --- a/testsuites/samples/cdtest/system.h +++ b/testsuites/samples/cdtest/system.h @@ -12,6 +12,7 @@ */ #include <rtems.h> +#include <rtems/test.h> /* functions */ @@ -33,6 +34,8 @@ rtems_task main_task( #define CONFIGURE_INIT_TASK_ENTRY_POINT main_task #define CONFIGURE_INIT_TASK_NAME rtems_build_name( 'C', 'T', 'O', 'R' ) +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #include <rtems/confdefs.h> /* end of include file */ |