diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-10-21 22:09:44 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-10-21 22:09:44 +0000 |
commit | 8e9a25ac02292bd74e9889800784e55f55fced25 (patch) | |
tree | e7c5cec1ef987a75da7f94e2556455aadda523d7 /testsuites/psxtests/psx05 | |
parent | 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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.c | 4 |
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( ×, -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 */ |