about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-07-07 16:03:57 +0000
committerJakub Jelinek <jakub@redhat.com>2007-07-07 16:03:57 +0000
commitdaae5dc5c8ed2fcc63bfa7b172ed7de13bec8943 (patch)
treee87f156f134ea9e5a601e2de65c3852f86b089b1
parent619b79105b34179aab8ade7f232e2cfc505a22ed (diff)
downloadglibc-daae5dc5c8ed2fcc63bfa7b172ed7de13bec8943.tar.gz
glibc-daae5dc5c8ed2fcc63bfa7b172ed7de13bec8943.tar.xz
glibc-daae5dc5c8ed2fcc63bfa7b172ed7de13bec8943.zip
* tst-robust9.c (do_test): Don't fail if ENABLE_PI and
	pthread_mutex_init failed with ENOTSUP.
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/tst-robust9.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 8ba39eafb9..15beed42ef 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -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
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");