diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-08 18:11:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-08 18:11:20 -0400 |
commit | 6d6218976df142ba5594371f8dbd56650151c56f (patch) | |
tree | 601d98860da969062a1c9d4aefe9e54aca228abf /tools/testing/selftests/timers/set-timer-lat.c | |
parent | 42c8e86c9c3e15ac653c31d57b2f985579c2991d (diff) | |
parent | 369130b63178e0e2f863a2da2a5ad0238ded6d9d (diff) |
Merge tag 'linux-kselftest-4.14-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest updates from Shuah Khan:
- TAP13 framework API and converting tests to TAP13 continues. A few
more tests are converted and kselftest common RUN_TESTS in lib.mk is
enhanced to print TAP13 to cover test shell scripts that won't be
able to use kselftest API.
- Several fixes to existing tests to not fail in unsupported cases.
This has been an ongoing work based on the feedback from stable
release kselftest users.
- A new watchdog test and much needed cleanups to the existing tests
from Eugeniu Rosca.
- Changes to kselftest common lib.mk framework to make RUN_TESTS a
function to be called from individual test make files to run stress
and destructive sub-tests.
* tag 'linux-kselftest-4.14-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (41 commits)
selftests: Enhance kselftest_harness.h to print which assert failed
selftests: lib.mk: change RUN_TESTS to print messages in TAP13 format
selftests: change lib.mk RUN_TESTS to take test list as an argument
selftests: lib.mk: suppress "cd" output from run_tests target
selftests: kselftest framework: change skip exit code to 0
selftests/timers: make loop consistent with array size
selftests: timers: remove rtctest_setdate from run_destructive_tests
selftests: timers: Fix run_destructive_tests target to handle skipped tests
kselftests: timers: leap-a-day: Change default arguments to help test runs
selftests: timers: drop support for !KTEST case
rtc: rtctest: Improve support detection
selftests/cpu-hotplug: Skip test when there is only one online cpu
selftests/cpu-hotplug: exit with failure when test occured unexpected behaviors
selftests: futex: convert test to use ksft TAP13 framework
selftests: capabilities: convert error output to TAP13 ksft framework
selftests: memfd: Align STACK_SIZE for ARM AArch64 system
selftests: warn if failure is due to lack of executable bit
selftests: kselftest framework: add error counter
selftests: capabilities: convert the test to use TAP13 ksft framework
selftests: capabilities: fix to run Non-root +ia, sgidroot => i test
...
Diffstat (limited to 'tools/testing/selftests/timers/set-timer-lat.c')
-rw-r--r-- | tools/testing/selftests/timers/set-timer-lat.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/testing/selftests/timers/set-timer-lat.c b/tools/testing/selftests/timers/set-timer-lat.c index 15434da23b04..9c92b7bd5641 100644 --- a/tools/testing/selftests/timers/set-timer-lat.c +++ b/tools/testing/selftests/timers/set-timer-lat.c | |||
@@ -28,18 +28,7 @@ | |||
28 | #include <signal.h> | 28 | #include <signal.h> |
29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
30 | #include <pthread.h> | 30 | #include <pthread.h> |
31 | #ifdef KTEST | ||
32 | #include "../kselftest.h" | 31 | #include "../kselftest.h" |
33 | #else | ||
34 | static inline int ksft_exit_pass(void) | ||
35 | { | ||
36 | exit(0); | ||
37 | } | ||
38 | static inline int ksft_exit_fail(void) | ||
39 | { | ||
40 | exit(1); | ||
41 | } | ||
42 | #endif | ||
43 | 32 | ||
44 | #define CLOCK_REALTIME 0 | 33 | #define CLOCK_REALTIME 0 |
45 | #define CLOCK_MONOTONIC 1 | 34 | #define CLOCK_MONOTONIC 1 |