summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxcond01/psxcond01.scn
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-12-10 17:56:22 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-12-10 17:56:22 -0600
commit74c15fe6960a0db29d6d0bb1e2e9b4e80d92179a (patch)
treee775f4d3ef22fb5912077426245e50df85667eca /testsuites/psxtests/psxcond01/psxcond01.scn
parentalarm.c: Use _Assert() not assert() (diff)
downloadrtems-74c15fe6960a0db29d6d0bb1e2e9b4e80d92179a.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxcond01/psxcond01.scn1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxcond01/psxcond01.scn b/testsuites/psxtests/psxcond01/psxcond01.scn
index 18b434832e..9e306ccb64 100644
--- a/testsuites/psxtests/psxcond01/psxcond01.scn
+++ b/testsuites/psxtests/psxcond01/psxcond01.scn
@@ -1,6 +1,7 @@
*** POSIX TEST -- CONDITION VARIABLE 01 ***
Init - pthread_mutex_init - Mutex1 - OK
Init - pthread_mutex_init - Mutex2 - OK
+BlockingThread - pthread_cond_wait with mutex not locked - EPERM
Init - pthread_cond_init - Condition - OK
Init - pthread_create - OK
Init - sleep to let BlockingThread run