diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-17 08:10:40 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-20 09:10:26 +0100 |
commit | f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133 (patch) | |
tree | 851dc4a6921d6cc7936aefa6343c516fff452dd8 /testsuites/libtests/exit01 | |
parent | tests/fstests: Remove duplicate begin/end messages (diff) | |
download | rtems-f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133.tar.bz2 |
tests/libtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/libtests/exit01')
-rw-r--r-- | testsuites/libtests/exit01/init.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/testsuites/libtests/exit01/init.c b/testsuites/libtests/exit01/init.c index f07dc2a72c..b237ee5c3b 100644 --- a/testsuites/libtests/exit01/init.c +++ b/testsuites/libtests/exit01/init.c @@ -22,6 +22,9 @@ #include <assert.h> #include <rtems.h> +#include <rtems/test.h> + +const char rtems_test_name[] = "EXIT 1"; #define EXIT_STATUS 123 @@ -57,7 +60,7 @@ static void fatal_extension( && error == EXIT_STATUS && counter == 3 ) { - printk("*** END OF TEST EXIT 1 ***\n"); + rtems_test_endk(); } } @@ -82,7 +85,7 @@ static void Init(rtems_task_argument arg) rtems_status_code sc; rtems_id id; - printk("\n\n*** TEST EXIT 1 ***\n"); + rtems_test_begink(); sc = rtems_task_create( rtems_build_name('E', 'X', 'I', 'T'), @@ -106,7 +109,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 |