diff options
author | David Leonard <d@cvs.openbsd.org> | 1999-05-26 00:09:51 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1999-05-26 00:09:51 +0000 |
commit | 3060ca6ff8355c31736c7dba4431bd3a590bb5fa (patch) | |
tree | 8468040674dbc03601a7ffce15e425f8e710a54c /lib/libc_r/TEST | |
parent | aec11aa3e9e9096fa662c74fa4cbf929ea4f48a3 (diff) |
document double-unlock check and how it relates to the std. (POSIX says in one paragraph that the behaviour is undefined, then in another says that EPERM should be returned
Diffstat (limited to 'lib/libc_r/TEST')
-rw-r--r-- | lib/libc_r/TEST/test_pthread_mutex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc_r/TEST/test_pthread_mutex.c b/lib/libc_r/TEST/test_pthread_mutex.c index 1e86fe89368..1e9257b3dd1 100644 --- a/lib/libc_r/TEST/test_pthread_mutex.c +++ b/lib/libc_r/TEST/test_pthread_mutex.c @@ -73,6 +73,7 @@ test_debug_double_unlock(mutex) printf(" test_debug_double_unlock()\n"); CHECKr(pthread_mutex_lock(mutex)); CHECKr(pthread_mutex_unlock(mutex)); + /* Posix D10 says undefined behaviour? */ ASSERTe(pthread_mutex_unlock(mutex), == EPERM); } |