summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx01
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/psx01
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psx01')
-rw-r--r--testsuites/psxtests/psx01/init.c4
-rw-r--r--testsuites/psxtests/psx01/system.h2
-rw-r--r--testsuites/psxtests/psx01/task.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c
index a97f797491..2b2fafd0cd 100644
--- a/testsuites/psxtests/psx01/init.c
+++ b/testsuites/psxtests/psx01/init.c
@@ -20,6 +20,8 @@
#include <rtems/score/todimpl.h>
+const char rtems_test_name[] = "PSX 1";
+
void *POSIX_Init(
void *argument
)
@@ -30,7 +32,7 @@ void *POSIX_Init(
pthread_t thread_id;
struct utsname uts;
- puts( "\n\n*** POSIX TEST 1 ***" );
+ TEST_BEGIN();
/* print some system information */
diff --git a/testsuites/psxtests/psx01/system.h b/testsuites/psxtests/psx01/system.h
index a6414fcf7f..2addbb4348 100644
--- a/testsuites/psxtests/psx01/system.h
+++ b/testsuites/psxtests/psx01/system.h
@@ -31,6 +31,8 @@ void *Task_1_through_3(
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
diff --git a/testsuites/psxtests/psx01/task.c b/testsuites/psxtests/psx01/task.c
index f18ed2f204..3aa88fe882 100644
--- a/testsuites/psxtests/psx01/task.c
+++ b/testsuites/psxtests/psx01/task.c
@@ -71,7 +71,7 @@ void *Task_1_through_3(
status = pthread_equal( Init_id, (pthread_t) -1 );
rtems_test_assert( !status );
- puts( "*** END OF POSIX TEST 1 ***" );
+ TEST_END();
rtems_test_exit( 0 );
return NULL; /* just so the compiler thinks we returned something */