From 8e9a25ac02292bd74e9889800784e55f55fced25 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 21 Oct 2010 22:09:44 +0000 Subject: 2010-10-21 Joel Sherrill * psx05/init.c: Check for correct status returned. * psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Add test code to exercise path when attempting to lock for reading but there is at least one writer blocked waiting for access. --- testsuites/psxtests/psx05/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/psxtests/psx05') diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c index 3f01b94e5a..70e2187828 100644 --- a/testsuites/psxtests/psx05/init.c +++ b/testsuites/psxtests/psx05/init.c @@ -430,9 +430,9 @@ void *POSIX_Init( calculate_abstimeout( ×, -1, (TOD_NANOSECONDS_PER_SECOND / 2) ); status = pthread_mutex_timedlock( &Mutex_id, × ); - if ( status != EBUSY ) + if ( status != ETIMEDOUT ) printf( "status = %d\n", status ); - rtems_test_assert( status == EBUSY ); + rtems_test_assert( status == ETIMEDOUT ); /* switch to idle */ -- cgit v1.2.3