From: Jakub Jelinek Date: Sat, 7 Jul 2007 16:03:57 +0000 (+0000) Subject: * tst-robust9.c (do_test): Don't fail if ENABLE_PI and X-Git-Tag: cvs/fedora-glibc-2_6-4~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daae5dc5c8ed2fcc63bfa7b172ed7de13bec8943;p=thirdparty%2Fglibc.git * tst-robust9.c (do_test): Don't fail if ENABLE_PI and pthread_mutex_init failed with ENOTSUP. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 8ba39eafb9a..15beed42efd 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2007-05-21 Jakub Jelinek + + * tst-robust9.c (do_test): Don't fail if ENABLE_PI and + pthread_mutex_init failed with ENOTSUP. + 2007-01-15 Jakub Jelinek * 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 20cbd062dc3..1d6ba179be9 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");