From d95b992a2c62ecea18b1733d543beae6ae339349 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 15 Aug 2008 16:30:01 +0000 Subject: 2008-08-15 Joel Sherrill PR 1297/cpukit * psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Fix NULL attribute pointer handling. --- testsuites/psxtests/ChangeLog | 6 ++++++ testsuites/psxtests/psxrwlock01/psxrwlock01.scn | 1 - testsuites/psxtests/psxrwlock01/test.c | 4 ---- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'testsuites') diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index a327ca97eb..32d1d67afa 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,9 @@ +2008-08-15 Joel Sherrill + + PR 1297/cpukit + * psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Fix NULL attribute + pointer handling. + 2008-08-04 Joel Sherrill * psxsem01/init.c: Spacing. diff --git a/testsuites/psxtests/psxrwlock01/psxrwlock01.scn b/testsuites/psxtests/psxrwlock01/psxrwlock01.scn index ceb2dd4d91..981020f0ca 100644 --- a/testsuites/psxtests/psxrwlock01/psxrwlock01.scn +++ b/testsuites/psxtests/psxrwlock01/psxrwlock01.scn @@ -16,7 +16,6 @@ pthread_rwlockattr_getpshared( &attr, &p ) -- OK pthread_rwlockattr_destroy( &attr ) -- OK pthread_rwlockattr_getpshared( &attr, &p ) destroyed -- EINVAL pthread_rwlock_init(NULL, &attr) -- EINVAL -pthread_rwlock_init(&rwlock, NULL) -- EINVAL pthread_rwlock_destroy(NULL) -- EINVAL pthread_rwlock_rdlock(NULL) -- EINVAL pthread_rwlock_timedrdlock( NULL, &abstime) -- EINVAL diff --git a/testsuites/psxtests/psxrwlock01/test.c b/testsuites/psxtests/psxrwlock01/test.c index 2305d6799f..270e512a55 100644 --- a/testsuites/psxtests/psxrwlock01/test.c +++ b/testsuites/psxtests/psxrwlock01/test.c @@ -164,10 +164,6 @@ int main( status = pthread_rwlock_init(NULL, &attr); assert( status == EINVAL ); - puts( "pthread_rwlock_init(&rwlock, NULL) -- EINVAL" ); - status = pthread_rwlock_init(&rwlock, NULL); - assert( status == EINVAL ); - puts( "pthread_rwlock_destroy(NULL) -- EINVAL" ); status = pthread_rwlock_destroy(NULL); assert( status == EINVAL ); -- cgit v1.2.3