[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <4d61413eca3d45124f3207150d2ab55a1b83e911.1502404902.git.shuahkh@osg.samsung.com>
Date: Thu, 10 Aug 2017 17:53:19 -0600
From: Shuah Khan <shuahkh@....samsung.com>
To: john.stultz@...aro.org, shuah@...nel.org
Cc: Shuah Khan <shuahkh@....samsung.com>, tglx@...utronix.de,
sboyd@...eaurora.org, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: [PATCH 2/3] selftests: timers: posix_timers: fix to work without ksft framework
Fix to build and run without ksft framework like the other timers tests.
Signed-off-by: Shuah Khan <shuahkh@....samsung.com>
---
tools/testing/selftests/timers/posix_timers.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/testing/selftests/timers/posix_timers.c b/tools/testing/selftests/timers/posix_timers.c
index 15cf56d32155..c6dc92c2dc12 100644
--- a/tools/testing/selftests/timers/posix_timers.c
+++ b/tools/testing/selftests/timers/posix_timers.c
@@ -15,7 +15,11 @@
#include <time.h>
#include <pthread.h>
+#ifdef KTEST
#include "../kselftest.h"
+#else
+#include "kselftest_stubs.h"
+#endif
#define DELAY 2
#define USECS_PER_SEC 1000000
--
2.11.0
Powered by blists - more mailing lists