From 2c9718f3b34095d764128c61d1ae8f26354b66de Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 21 May 2007 22:12:40 +0000 Subject: * tst-robust9.c (do_test): Don't fail if ENABLE_PI and pthread_mutex_init failed with ENOTSUP. 2007-05-21 Jakub Jelinek * tst-robust9.c (do_test): Don't fail if ENABLE_PI and pthread_mutex_init failed with ENOTSUP. --- nptl/tst-robust9.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nptl/tst-robust9.c') diff --git a/nptl/tst-robust9.c b/nptl/tst-robust9.c index 20cbd06..1d6ba17 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"); -- cgit v1.1