summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxclassic01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:16 +0100
commit698c2e504a4382036b412e1b2798ca83432bbbab (patch)
tree114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psxclassic01
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxclassic01')
-rw-r--r--testsuites/psxtests/psxclassic01/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxclassic01/init.c b/testsuites/psxtests/psxclassic01/init.c
index ce8929c363..3ffbd3cf92 100644
--- a/testsuites/psxtests/psxclassic01/init.c
+++ b/testsuites/psxtests/psxclassic01/init.c
@@ -25,6 +25,8 @@
#include <unistd.h>
#include <errno.h>
+const char rtems_test_name[] = "PSXCLASSIC 1";
+
int Caught_signo = -1;
siginfo_t Caught_siginfo = { -1, -1, };
@@ -107,7 +109,7 @@ rtems_task Init(rtems_task_argument arg)
int status;
void *retval;
- puts( "*** START OF CLASSIC API TEST OF POSIX 01 ***" );
+ TEST_BEGIN();
sc = rtems_task_create(
rtems_build_name('T','E','S','T'),
@@ -141,7 +143,7 @@ rtems_task Init(rtems_task_argument arg)
status = pthread_kill( task_id, SIGUSR1 );
rtems_test_assert( status == 0 );
- puts( "*** END OF CLASSIC API TEST OF POSIX 01 ***" );
+ TEST_END();
exit(0);
}
@@ -155,6 +157,8 @@ rtems_task Init(rtems_task_argument arg)
(RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_ASR | RTEMS_INTERRUPT_LEVEL(0))
#define CONFIGURE_INIT_TASK_PRIORITY 4
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_UNIFIED_WORK_AREAS