summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxspin01
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/psxspin01
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxspin01')
-rw-r--r--testsuites/psxtests/psxspin01/main.c2
-rw-r--r--testsuites/psxtests/psxspin01/test.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxspin01/main.c b/testsuites/psxtests/psxspin01/main.c
index aa889bf200..6793784f75 100644
--- a/testsuites/psxtests/psxspin01/main.c
+++ b/testsuites/psxtests/psxspin01/main.c
@@ -43,6 +43,8 @@ rtems_task Init(
#define CONFIGURE_MAXIMUM_POSIX_SPINLOCKS 1
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT_TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE * 2)
#define CONFIGURE_INIT_TASK_PRIORITY 2
diff --git a/testsuites/psxtests/psxspin01/test.c b/testsuites/psxtests/psxspin01/test.c
index 76d3abcafc..f6fda64c75 100644
--- a/testsuites/psxtests/psxspin01/test.c
+++ b/testsuites/psxtests/psxspin01/test.c
@@ -26,6 +26,8 @@
#include <rtems.h> /* for task creation */
+const char rtems_test_name[] = "PSXSPIN 1";
+
/* forward declarations to avoid warnings */
int test_main(void);
rtems_task SpinlockThread(rtems_task_argument arg);
@@ -79,7 +81,7 @@ int main(
rtems_status_code rstatus;
rtems_id taskid;
- puts( "\n\n*** POSIX SPINLOCK TEST 01 ***" );
+ TEST_BEGIN();
puts( "pthread_spin_init( NULL, PTHREAD_PROCESS_PRIVATE ) -- EINVAL" );
status = pthread_spin_init( NULL, PTHREAD_PROCESS_PRIVATE );
@@ -222,6 +224,6 @@ int main(
rtems_test_assert( status == 0 );
/*************** END OF TEST *****************/
- puts( "*** END OF POSIX SPINLOCK TEST 01 ***" );
+ TEST_END();
exit(0);
}