summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/monitor
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/monitor
parenttests/fstests: Remove duplicate begin/end messages (diff)
downloadrtems-f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133.tar.bz2
tests/libtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/libtests/monitor')
-rw-r--r--testsuites/libtests/monitor/init.c6
-rw-r--r--testsuites/libtests/monitor/system.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/libtests/monitor/init.c b/testsuites/libtests/monitor/init.c
index 32b53685ac..1934d9856d 100644
--- a/testsuites/libtests/monitor/init.c
+++ b/testsuites/libtests/monitor/init.c
@@ -21,6 +21,8 @@
#include <rtems/monitor.h>
#include <rtems/shell.h>
+const char rtems_test_name[] = "MONITOR";
+
rtems_task_priority Priorities[6] = { 0, 1, 1, 3, 4, 5 };
rtems_task Task_1_through_5(
@@ -50,7 +52,7 @@ rtems_task Init(
uint32_t index;
rtems_status_code status;
- puts( "\n\n*** TEST MONITOR ***" );
+ TEST_BEGIN();
Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' );
Task_name[ 2 ] = rtems_build_name( 'T', 'A', '2', ' ' );
@@ -87,7 +89,7 @@ rtems_task Init(
status = rtems_task_delete( RTEMS_SELF );
directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
} else {
- puts( "*** END OF TEST MONITOR ***" );
+ TEST_END();
rtems_test_exit( 0 );
}
diff --git a/testsuites/libtests/monitor/system.h b/testsuites/libtests/monitor/system.h
index e6f1c9fa57..fbe5ba17a0 100644
--- a/testsuites/libtests/monitor/system.h
+++ b/testsuites/libtests/monitor/system.h
@@ -41,6 +41,8 @@ void Get_all_counters( void );
#define CONFIGURE_INIT_TASK_PRIORITY 10
#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_EXTRA_TASK_STACKS \