summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/rtems++
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 08:10:40 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-20 09:10:26 +0100
commitf8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133 (patch)
tree851dc4a6921d6cc7936aefa6343c516fff452dd8 /testsuites/libtests/rtems++
parenttests/fstests: Remove duplicate begin/end messages (diff)
downloadrtems-f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133.tar.bz2
tests/libtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/libtests/rtems++')
-rw-r--r--testsuites/libtests/rtems++/Init.cc4
-rw-r--r--testsuites/libtests/rtems++/System.h2
-rw-r--r--testsuites/libtests/rtems++/Task1.cc2
3 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/libtests/rtems++/Init.cc b/testsuites/libtests/rtems++/Init.cc
index da0cdfb251..a8ca075763 100644
--- a/testsuites/libtests/rtems++/Init.cc
+++ b/testsuites/libtests/rtems++/Init.cc
@@ -26,12 +26,14 @@
#define CONFIGURE_INIT
#include "System.h"
+const char rtems_test_name[] = "RTEMS++";
+
// make global so it lasts past the Init task's stack's life time
Task1 task_1;
rtems_task Init(rtems_task_argument )
{
- puts( "\n\n*** RTEMS++ TEST ***" );
+ TEST_BEGIN();
printf( "INIT - Task.create() - " );
task_1.create("TA1 ", 0, RTEMS_MINIMUM_STACK_SIZE);
diff --git a/testsuites/libtests/rtems++/System.h b/testsuites/libtests/rtems++/System.h
index c7b369a900..3e37610cc5 100644
--- a/testsuites/libtests/rtems++/System.h
+++ b/testsuites/libtests/rtems++/System.h
@@ -123,6 +123,8 @@ class Io_during_interrupt
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 0
#define CONFIGURE_TICKS_PER_TIMESLICE 100
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT_TASK_STACK_SIZE (4 * RTEMS_MINIMUM_STACK_SIZE)
diff --git a/testsuites/libtests/rtems++/Task1.cc b/testsuites/libtests/rtems++/Task1.cc
index e26b0d5d60..6fb0989fb2 100644
--- a/testsuites/libtests/rtems++/Task1.cc
+++ b/testsuites/libtests/rtems++/Task1.cc
@@ -694,7 +694,7 @@ EndTask::EndTask(const char* name,
void EndTask::body(rtems_task_argument)
{
- printf("*** END OF RTEMS++ TEST ***\n");
+ TEST_END();
exit(0);
}