summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorMark Johannes <Mark.Johannes@OARcorp.com>1996-08-12 14:49:02 +0000
committerMark Johannes <Mark.Johannes@OARcorp.com>1996-08-12 14:49:02 +0000
commit5263668f6db3f5279844c662ac6803117f16c17c (patch)
treed064c5c5ae6e521c3c4b2559005779848136e6d9 /testsuites
parentsystem.h: added condition variable #define for 10 condition variables (diff)
downloadrtems-5263668f6db3f5279844c662ac6803117f16c17c.tar.bz2
Init: added prliminary phtread_cond_init and destroy cases.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/psx10/init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx10/init.c b/testsuites/psxtests/psx10/init.c
index 790d7ffcaa..3990d03329 100644
--- a/testsuites/psxtests/psx10/init.c
+++ b/testsuites/psxtests/psx10/init.c
@@ -23,6 +23,7 @@ void *POSIX_Init(
pthread_t thread_id;
pthread_condattr_t attr;
int pshared;
+ pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
puts( "\n\n*** POSIX TEST 10 ***" );
@@ -79,6 +80,14 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init: ID is 0x%08x\n", Init_id );
+ puts( "Init: pthread_cond_init - NULL attr" );
+ status = pthread_cond_init( &cond, NULL );
+ assert( !status );
+
+ puts( "Init: pthread_cond_destroy" );
+ status = pthread_cond_destroy( &cond );
+ assert( !status );
+
/* create a thread */
/*