summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxmutexattr01
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/psxmutexattr01
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxmutexattr01')
-rw-r--r--testsuites/psxtests/psxmutexattr01/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxmutexattr01/init.c b/testsuites/psxtests/psxmutexattr01/init.c
index 64e6ff44c8..1ea1ab58c0 100644
--- a/testsuites/psxtests/psxmutexattr01/init.c
+++ b/testsuites/psxtests/psxmutexattr01/init.c
@@ -15,6 +15,8 @@
#include <errno.h>
#include <pthread.h>
+const char rtems_test_name[] = "PSXMUTEXATTR 1";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
@@ -45,7 +47,7 @@ void *POSIX_Init(
int type;
int i;
- puts( "\n\n*** POSIX MUTEX ATTRIBUTE TEST 1 ***" );
+ TEST_BEGIN();
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
puts( "Init - pthread_mutexattr_gettype - attr NULL - EINVAL" );
@@ -103,7 +105,7 @@ void *POSIX_Init(
puts( "POSIX Mutex Attribute Type Not Supported in Tools" );
#endif
- puts( "*** END OF POSIX MUTEX ATTRIBUTE TEST 1 ***" );
+ TEST_END();
rtems_test_exit(0);
}
@@ -112,6 +114,8 @@ void *POSIX_Init(
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
#define CONFIGURE_POSIX_INIT_THREAD_TABLE