source: rtems/testsuites/psxtests/psxcond01/psxcond01.scn @ 74c15fe6

4.11
Last change on this file since 74c15fe6 was 74c15fe6, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 10, 2013 at 11:56:22 PM

psxtmcond01: Fix bug where mutex not locked and add EPERM error check

This test formerly had a bug in that it attempted to wait on a
condition variable with a Mutex that was not locked. This is
undefined by POSIX. But a recent change to match GNU/Linux behavior
resulted in finding a bug in the test.

  • Property mode set to 100644
File size: 440 bytes
Line 
1*** POSIX TEST -- CONDITION VARIABLE 01 ***
2Init - pthread_mutex_init - Mutex1 - OK
3Init - pthread_mutex_init - Mutex2 - OK
4BlockingThread - pthread_cond_wait with mutex not locked - EPERM
5Init - pthread_cond_init - Condition - OK
6Init -  pthread_create - OK
7Init - sleep to let BlockingThread run
8BlockingThread - pthread_cond_wait on Mutex1 - OK
9Init - pthread_cond_wait on Mutex2 - EINVAL
10*** END OF POSIX TEST CONDITION VARIABLE 01 ***
Note: See TracBrowser for help on using the repository browser.