Module: xenomai-forge
Branch: next
Commit: 67422afbc5f673fdf74a93e9a30f46904563bf23
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=67422afbc5f673fdf74a93e9a30f46904563bf23

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Sep 25 12:33:25 2014 +0200

smokey/mutex-torture: disable PI tests if PTHREAD_PRIO_INHERIT not supported

---

 testsuite/smokey/mutex-torture/mutex-torture.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testsuite/smokey/mutex-torture/mutex-torture.c 
b/testsuite/smokey/mutex-torture/mutex-torture.c
index 8909060..d7d7b3d 100644
--- a/testsuite/smokey/mutex-torture/mutex-torture.c
+++ b/testsuite/smokey/mutex-torture/mutex-torture.c
@@ -447,6 +447,10 @@ static void pi_wait(void)
        pthread_mutex_t mutex;
        pthread_t waiter_tid;
 
+#ifndef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
+       fprintf(stderr, "NOTE: pi_wait PTHREAD_PRIO_INHERIT: not supported\n");
+       return;
+#endif
        fprintf(stderr, "pi_wait\n");
 
        dispatch("pi mutex_init", MUTEX_CREATE, 1, 0, &mutex, 1, 0);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to