summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx05
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-10-21 22:09:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-10-21 22:09:44 +0000
commit8e9a25ac02292bd74e9889800784e55f55fced25 (patch)
treee7c5cec1ef987a75da7f94e2556455aadda523d7 /testsuites/psxtests/psx05
parent2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-8e9a25ac02292bd74e9889800784e55f55fced25.tar.bz2
2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'testsuites/psxtests/psx05')
-rw-r--r--testsuites/psxtests/psx05/init.c4
1 files changed, 2 insertions, 2 deletions
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( &times, -1, (TOD_NANOSECONDS_PER_SECOND / 2) );
status = pthread_mutex_timedlock( &Mutex_id, &times );
- if ( status != EBUSY )
+ if ( status != ETIMEDOUT )
printf( "status = %d\n", status );
- rtems_test_assert( status == EBUSY );
+ rtems_test_assert( status == ETIMEDOUT );
/* switch to idle */