From c6dc6db0743f49b765ac2d67e2734a0e27efb5f4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 4 Jul 2009 20:26:18 +0000 Subject: 2009-07-04 Santosh G Vattam * psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Add test case for obtaining an rwlock and then releasing it twice. --- testsuites/psxtests/psxrwlock01/psxrwlock01.scn | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuites/psxtests/psxrwlock01/psxrwlock01.scn') diff --git a/testsuites/psxtests/psxrwlock01/psxrwlock01.scn b/testsuites/psxtests/psxrwlock01/psxrwlock01.scn index 4a4c7d05a8..578c5f54c7 100644 --- a/testsuites/psxtests/psxrwlock01/psxrwlock01.scn +++ b/testsuites/psxtests/psxrwlock01/psxrwlock01.scn @@ -79,4 +79,7 @@ pthread_rwlock_timedwrlock( &RWLock, &abstime) -- ETIMEDOUT pthread_rwlock_timedrdlock( &RWLock, &abstime) -- in past -- OK pthread_rwlock_timedwrlock( &RWLock, &abstime) -- in past -- OK pthread_rwlock_destroy( &RWLock ) -- OK +pthread_rwlock_init( &rwlock, NULL ) -- OK +pthread_rwlock_unlock ( &rwlock ) -- OK +pthread_rwlock_unlock ( &rwlock ) -- OK *** END OF POSIX RWLOCK TEST 01 *** -- cgit v1.2.3