summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/timers/clocksource-switch.c
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2017-08-11 10:11:42 -0600
committerShuah Khan <shuahkh@osg.samsung.com>2017-08-22 11:15:59 -0600
commitb841065043f996e2bf7648786485f3935625592b (patch)
treef6817da44d6dff09f856cee0364d0c01c72bada9 /tools/testing/selftests/timers/clocksource-switch.c
parent4db26f9e642bdf55ba54c559839e8ef9495b83c7 (diff)
downloadlinux-stable-b841065043f996e2bf7648786485f3935625592b.tar.gz
linux-stable-b841065043f996e2bf7648786485f3935625592b.tar.bz2
linux-stable-b841065043f996e2bf7648786485f3935625592b.zip
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 <shuahkh@osg.samsung.com> Acked-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'tools/testing/selftests/timers/clocksource-switch.c')
-rw-r--r--tools/testing/selftests/timers/clocksource-switch.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/testing/selftests/timers/clocksource-switch.c b/tools/testing/selftests/timers/clocksource-switch.c
index 5ff165373f8b..3ef214628067 100644
--- a/tools/testing/selftests/timers/clocksource-switch.c
+++ b/tools/testing/selftests/timers/clocksource-switch.c
@@ -34,18 +34,7 @@
#include <fcntl.h>
#include <string.h>
#include <sys/wait.h>
-#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
int get_clocksources(char list[][30])