From b841065043f996e2bf7648786485f3935625592b Mon Sep 17 00:00:00 2001 From: Shuah Khan Date: Fri, 11 Aug 2017 10:11:42 -0600 Subject: selftests: timers: drop support for !KTEST case There is no need to keep timers tests in sync with external timers repo. Drop support for !KTEST to support for building and running timers tests without kselftest framework. Reference: https://lkml.org/lkml/2017/8/10/952 Signed-off-by: Shuah Khan Acked-by: John Stultz --- tools/testing/selftests/timers/alarmtimer-suspend.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'tools/testing/selftests/timers/alarmtimer-suspend.c') diff --git a/tools/testing/selftests/timers/alarmtimer-suspend.c b/tools/testing/selftests/timers/alarmtimer-suspend.c index 2b361b830395..4da09dbf83ba 100644 --- a/tools/testing/selftests/timers/alarmtimer-suspend.c +++ b/tools/testing/selftests/timers/alarmtimer-suspend.c @@ -28,18 +28,7 @@ #include #include #include -#ifdef KTEST #include "../kselftest.h" -#else -static inline int ksft_exit_pass(void) -{ - exit(0); -} -static inline int ksft_exit_fail(void) -{ - exit(1); -} -#endif #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 -- cgit v1.2.3-59-g8ed1b