summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/cdtest
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-10 16:31:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 09:17:36 +0100
commit9391f6d6637c752046cdfd89ae2eeea147496e44 (patch)
treefe6ad09c222cdf0489414d4a5a644b10845de333 /testsuites/samples/cdtest
parentsapi: Add <rtems/test.h> (diff)
downloadrtems-9391f6d6637c752046cdfd89ae2eeea147496e44.tar.bz2
tests/samples: Use <rtems/test.h>
Diffstat (limited to 'testsuites/samples/cdtest')
-rw-r--r--testsuites/samples/cdtest/main.cc8
-rw-r--r--testsuites/samples/cdtest/system.h3
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 */