diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
commit | 698c2e504a4382036b412e1b2798ca83432bbbab (patch) | |
tree | 114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psx15 | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psx15')
-rw-r--r-- | testsuites/psxtests/psx15/init.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/testsuites/psxtests/psx15/init.c b/testsuites/psxtests/psx15/init.c index 9c50067999..cb0d932813 100644 --- a/testsuites/psxtests/psx15/init.c +++ b/testsuites/psxtests/psx15/init.c @@ -23,6 +23,8 @@ #include "tmacros.h" +const char rtems_test_name[] = "PSX 15"; + /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); @@ -64,7 +66,7 @@ void Init(rtems_task_argument arg) { rtems_status_code sc = RTEMS_SUCCESSFUL; - puts("\n\n*** POSIX TEST 15 ***"); + TEST_BEGIN(); sc = rtems_task_create( rtems_build_name('T', 'S', 'K', '1'), @@ -92,7 +94,7 @@ void Init(rtems_task_argument arg) sc = rtems_task_start(task_0, suicide_task, 0); rtems_test_assert(sc == RTEMS_SUCCESSFUL); - puts("*** END OF POSIX TEST 15 ***"); + TEST_END(); rtems_test_exit(0); rtems_test_assert(false); @@ -106,11 +108,13 @@ void Init(rtems_task_argument arg) #define CONFIGURE_MAXIMUM_TASKS 3 #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1 +#define CONFIGURE_INITIAL_EXTENSIONS \ + { .thread_delete = thread_delete_hook }, \ + RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_PREEMPT #define CONFIGURE_INIT_TASK_PRIORITY 4 -#define CONFIGURE_INITIAL_EXTENSIONS { .thread_delete = thread_delete_hook } - #include <rtems/confdefs.h> |