diff mbox

[V2] Realtime tests: Fix robust mutex conditionals

Message ID 1414169252-19374-2-git-send-email-gary.robertson@linaro.org
State Accepted
Commit e93f4df54ce907390b275cc01bacc10b38592b81
Headers show

Commit Message

gary.robertson@linaro.org Oct. 24, 2014, 4:47 p.m. UTC
From: "Gary S. Robertson" <gary.robertson@linaro.org>

sbrk_mutex and testpi-6 realtime tests in subdir
testcases/realtime/func/pi-tests used compile time config variables
which were not generated by autoconf in order to configure tests
for robust mutexes.  Changed these conditionals to use the config
variables actually created in the autoconf process.

Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
---
 testcases/realtime/func/pi-tests/sbrk_mutex.c |    2 +-
 testcases/realtime/func/pi-tests/testpi-6.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/testcases/realtime/func/pi-tests/sbrk_mutex.c b/testcases/realtime/func/pi-tests/sbrk_mutex.c
index 684021f..5c325b4 100644
--- a/testcases/realtime/func/pi-tests/sbrk_mutex.c
+++ b/testcases/realtime/func/pi-tests/sbrk_mutex.c
@@ -45,7 +45,7 @@ 
 #include <unistd.h>
 #include "librttest.h"
 
-#if defined(HAS_PTHREAD_MUTEXTATTR_ROBUST_APIS) && defined(PTHREAD_MUTEX_ROBUST_NP)
+#if HAS_PTHREAD_MUTEXTATTR_ROBUST_APIS
 
 #define NUM_MUTEXES 5000
 #define NUM_THREADS 50
diff --git a/testcases/realtime/func/pi-tests/testpi-6.c b/testcases/realtime/func/pi-tests/testpi-6.c
index b3c3e4a..f715eee 100644
--- a/testcases/realtime/func/pi-tests/testpi-6.c
+++ b/testcases/realtime/func/pi-tests/testpi-6.c
@@ -41,7 +41,7 @@ 
 #include <unistd.h>
 #include <librttest.h>
 
-#if defined(PTHREAD_MUTEX_ROBUST_NP)
+#if HAS_PTHREAD_MUTEXTATTR_ROBUST_APIS
 pthread_mutex_t child_mutex;
 
 void *child_thread(void *arg)