summaryrefslogtreecommitdiff
path: root/tests/mutex2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mutex2.c')
-rw-r--r--tests/mutex2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mutex2.c b/tests/mutex2.c
index b161899..731c47f 100644
--- a/tests/mutex2.c
+++ b/tests/mutex2.c
@@ -26,5 +26,9 @@ main()
assert(pthread_mutex_unlock(&mutex) == 0);
+ assert(pthread_mutex_destroy(&mutex) == 0);
+
+ assert(mutex == NULL);
+
return 0;
}