* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
authorjakub <jakub>
Sat, 7 Jul 2007 16:03:57 +0000 (16:03 +0000)
committerjakub <jakub>
Sat, 7 Jul 2007 16:03:57 +0000 (16:03 +0000)
pthread_mutex_init failed with ENOTSUP.

nptl/ChangeLog
nptl/tst-robust9.c

index 8ba39ea..15beed4 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-21  Jakub Jelinek  <jakub@redhat.com>
+
+       * tst-robust9.c (do_test): Don't fail if ENABLE_PI and
+       pthread_mutex_init failed with ENOTSUP.
+
 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
 
        * pthread_create.c (__pthread_create_2_1): On the first pthread_create
index 20cbd06..1d6ba17 100644 (file)
@@ -54,6 +54,13 @@ do_test (void)
     }
 #endif
   err = pthread_mutex_init (&m, &ma);
+#ifdef ENABLE_PI
+  if (err == ENOTSUP)
+    {
+      puts ("PI robust mutexes not supported");
+      return 0;
+    }
+#endif
   if (err)
     {
       puts ("pthread_mutex_init");