From 9391f6d6637c752046cdfd89ae2eeea147496e44 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 10 Mar 2014 16:31:43 +0100 Subject: tests/samples: Use --- testsuites/samples/cdtest/main.cc | 8 +++++--- testsuites/samples/cdtest/system.h | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'testsuites/samples/cdtest') 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 +#include #include #include @@ -31,6 +32,8 @@ #include #endif +const char rtems_test_name[] = "CONSTRUCTOR/DESTRUCTOR"; + extern "C" { #include @@ -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 +#include /* 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 /* end of include file */ -- cgit v1.2.3