From 5263668f6db3f5279844c662ac6803117f16c17c Mon Sep 17 00:00:00 2001 From: Mark Johannes Date: Mon, 12 Aug 1996 14:49:02 +0000 Subject: Init: added prliminary phtread_cond_init and destroy cases. --- c/src/tests/psxtests/psx10/init.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'c/src/tests') diff --git a/c/src/tests/psxtests/psx10/init.c b/c/src/tests/psxtests/psx10/init.c index 790d7ffcaa..3990d03329 100644 --- a/c/src/tests/psxtests/psx10/init.c +++ b/c/src/tests/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 */ /* -- cgit v1.2.3