Realtime tests: Use correct PI conditional in testpi-5

Message ID 1414169252-19374-3-git-send-email-gary.robertson@linaro.org
State Accepted
Commit 6e5b1008d989d4ec540013b4d815f2fb711b59bc
Headers show

Commit Message

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

testcases/realtime/func/pi-tests/testpi-5.c
referenced a non-existent autoconf configuration setting variable.
Replaced the invalid variable name with the variable actually created
by autoconf.

Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
---
 testcases/realtime/func/pi-tests/testpi-5.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/testcases/realtime/func/pi-tests/testpi-5.c b/testcases/realtime/func/pi-tests/testpi-5.c
index a1d93cc..a524864 100644
--- a/testcases/realtime/func/pi-tests/testpi-5.c
+++ b/testcases/realtime/func/pi-tests/testpi-5.c
@@ -69,7 +69,7 @@  int do_test(int argc, char **argv)
 	pthread_mutexattr_t mutexattr;
 	int retc, protocol;
 
-#if HAS_PTHREAD_MUTEXATTR_PROTOCOL_FUNCTIONS
+#if HAS_PRIORITY_INHERIT
 
 	if (pthread_mutexattr_init(&mutexattr) != 0)
 		printf("Failed to init mutexattr\n");