summaryrefslogtreecommitdiff
path: root/tests/mutex2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mutex2.c')
-rw-r--r--tests/mutex2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/mutex2.c b/tests/mutex2.c
index 7956f14..b161899 100644
--- a/tests/mutex2.c
+++ b/tests/mutex2.c
@@ -16,8 +16,14 @@ pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int
main()
{
+ assert(mutex == PTHREAD_MUTEX_INITIALIZER);
+
assert(pthread_mutex_lock(&mutex) == 0);
+ assert(mutex != PTHREAD_MUTEX_INITIALIZER);
+
+ assert(mutex != NULL);
+
assert(pthread_mutex_unlock(&mutex) == 0);
return 0;