summary refs log tree commit diff
path: root/nptl/tst-mutex5.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-mutex5.c')
-rw-r--r--nptl/tst-mutex5.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nptl/tst-mutex5.c b/nptl/tst-mutex5.c
index 7c414bc339..a615012507 100644
--- a/nptl/tst-mutex5.c
+++ b/nptl/tst-mutex5.c
@@ -142,6 +142,12 @@ do_test (void)
       return 1;
     }
 
+  if (pthread_mutex_unlock (&m) != 0)
+    {
+      puts ("final mutex_unlock failed");
+      return 1;
+    }
+
   if (pthread_mutex_destroy (&m) != 0)
     {
       puts ("mutex_destroy failed");