* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 May 2007 22:12:40 +0000 (22:12 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 21 May 2007 22:12:40 +0000 (22:12 +0000)
pthread_mutex_init failed with ENOTSUP.
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.

nptl/ChangeLog
nptl/tst-robust9.c

index db7b86f..ed00f55 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-05-19  Ulrich Drepper  <drepper@redhat.com>
 
        * allocatestack.c (__wait_lookup_done): New function.
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");