summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxcond01
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/psxcond01
parenttests: Use rtems_status_text() (diff)
downloadrtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxcond01')
-rw-r--r--testsuites/psxtests/psxcond01/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxcond01/init.c b/testsuites/psxtests/psxcond01/init.c
index 9c49fe974d..395443a3c7 100644
--- a/testsuites/psxtests/psxcond01/init.c
+++ b/testsuites/psxtests/psxcond01/init.c
@@ -15,6 +15,8 @@
#include <pthread.h>
#include <errno.h>
+const char rtems_test_name[] = "PSXCOND 1";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void *BlockingThread(void *argument);
@@ -56,7 +58,7 @@ void *POSIX_Init(
int sc;
pthread_t Thread;
- puts( "\n\n*** POSIX TEST -- CONDITION VARIABLE 01 ***" );
+ TEST_BEGIN();
puts( "Init - pthread_mutex_init - Mutex1 - OK" );
sc = pthread_mutex_init( &Mutex1, NULL );
@@ -81,7 +83,7 @@ void *POSIX_Init(
sc = pthread_cond_wait( &Condition, &Mutex2 );
fatal_posix_service_status( sc, EINVAL, "cond_wait EINVAL" );
- puts( "*** END OF POSIX TEST CONDITION VARIABLE 01 ***" );
+ TEST_END();
rtems_test_exit( 0 );
return NULL; /* just so the compiler thinks we returned something */
@@ -90,6 +92,8 @@ void *POSIX_Init(
#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_MAXIMUM_POSIX_MUTEXES 2
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 1