summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/exit02
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/exit02
parenttests/fstests: Remove duplicate begin/end messages (diff)
downloadrtems-f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133.tar.bz2
tests/libtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/libtests/exit02')
-rw-r--r--testsuites/libtests/exit02/init.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/testsuites/libtests/exit02/init.c b/testsuites/libtests/exit02/init.c
index 35ace473d7..74fe26e9b0 100644
--- a/testsuites/libtests/exit02/init.c
+++ b/testsuites/libtests/exit02/init.c
@@ -22,6 +22,9 @@
#include <assert.h>
#include <rtems.h>
+#include <rtems/test.h>
+
+const char rtems_test_name[] = "EXIT 2";
#define EXIT_STATUS 123
@@ -41,7 +44,7 @@ static void fatal_extension(
&& !is_internal
&& error == EXIT_STATUS
) {
- printk("*** END OF TEST EXIT 2 ***\n");
+ rtems_test_endk();
}
}
@@ -60,7 +63,7 @@ static void Init(rtems_task_argument arg)
rtems_status_code sc;
rtems_id id;
- printk("\n\n*** TEST EXIT 2 ***\n");
+ rtems_test_begink();
sc = rtems_task_create(
rtems_build_name('E', 'X', 'I', 'T'),
@@ -84,7 +87,9 @@ static void Init(rtems_task_argument arg)
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
-#define CONFIGURE_INITIAL_EXTENSIONS { .fatal = fatal_extension }
+#define CONFIGURE_INITIAL_EXTENSIONS \
+ { .fatal = fatal_extension }, \
+ RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_MAXIMUM_TASKS 2