about summary refs log tree commit diff
path: root/nptl/tst-robust9.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-05-21 22:12:40 +0000
committerJakub Jelinek <jakub@redhat.com>2007-05-21 22:12:40 +0000
commit2c9718f3b34095d764128c61d1ae8f26354b66de (patch)
treee8539254033989dd75144634aeb3f341a85c0987 /nptl/tst-robust9.c
parente2b1e3431247f32ce1192839fe39984af0a923cf (diff)
downloadglibc-2c9718f3b34095d764128c61d1ae8f26354b66de.tar.gz
glibc-2c9718f3b34095d764128c61d1ae8f26354b66de.tar.xz
glibc-2c9718f3b34095d764128c61d1ae8f26354b66de.zip
* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
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.
Diffstat (limited to 'nptl/tst-robust9.c')
-rw-r--r--nptl/tst-robust9.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nptl/tst-robust9.c b/nptl/tst-robust9.c
index 20cbd062dc..1d6ba179be 100644
--- a/nptl/tst-robust9.c
+++ b/nptl/tst-robust9.c
@@ -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");