summaryrefslogtreecommitdiff
path: root/tests/mutex1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mutex1.c')
-rw-r--r--tests/mutex1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mutex1.c b/tests/mutex1.c
index c997963..b7f6b6f 100644
--- a/tests/mutex1.c
+++ b/tests/mutex1.c
@@ -24,6 +24,10 @@ main()
assert(mutex != NULL);
+ assert(pthread_mutex_lock(&mutex) == 0);
+
+ assert(pthread_mutex_unlock(&mutex) == 0);
+
assert(pthread_mutex_destroy(&mutex) == 0);
assert(mutex == NULL);