linux_dsm_epyc7002/tools/testing/selftests/timers
John Stultz 61171d0407 kselftests: timers: Check _ALARM clockids are supported before suspending
It was reported that the alarmtimer-suspend test hangs on older
systems that don't support _ALARM clockids.

This is due to the fact that we don't check if the timer_create
fails, and thus when we suspend, the system will not programatically
resume.

Fix this by checking the timer_create call for errors.

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2015-05-26 15:58:07 -06:00
..
.gitignore selftests/timers: Make git ignore all binaries in timers test suite 2015-05-26 15:58:06 -06:00
alarmtimer-suspend.c kselftests: timers: Check _ALARM clockids are supported before suspending 2015-05-26 15:58:07 -06:00
change_skew.c selftests/timers: Add change_skew test from timetest suite 2015-03-12 13:22:15 -06:00
clocksource-switch.c selftests/timers: Add clocksource-switch test from timetest suite 2015-03-12 13:22:15 -06:00
inconsistency-check.c kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat 2015-03-31 13:44:32 -06:00
leap-a-day.c selftests/timers: Add leap-a-day test from timetest suite 2015-03-12 13:22:16 -06:00
leapcrash.c selftests/timers: Add leapcrash test from the timetest suite 2015-03-12 13:22:16 -06:00
Makefile Documentation, split up rtc.txt into documentation and test file 2015-03-24 22:01:58 -06:00
mqueue-lat.c selftests/timers: Add mqueue latency test from the timetest suite 2015-03-12 13:22:14 -06:00
nanosleep.c selftests/timers: Add nanosleep test from timetest suite 2015-03-12 13:22:13 -06:00
nsleep-lat.c selftests/timers: Add nsleep-lat test from timetest suite 2015-03-12 13:22:13 -06:00
posix_timers.c selftests/timers: Quiet warning due to lack of return check on brk 2015-03-12 13:22:12 -06:00
raw_skew.c selftests/timers: Add clock skew estimation test from timetest suite 2015-03-12 13:22:13 -06:00
rtctest.c tools, update rtctest.c to verify passage of time 2015-03-24 22:02:59 -06:00
set-2038.c selftests/timers: Add set-2038 test from timetest suite 2015-03-12 13:22:16 -06:00
set-tai.c selftests/timers: Add set-tai from the timetest suite 2015-03-12 13:22:16 -06:00
set-timer-lat.c kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM 2015-04-02 10:32:33 -06:00
skew_consistency.c selftests/timers: Add skew_consistency test from the timetests suite 2015-03-12 13:22:15 -06:00
threadtest.c kselftest/timers: Set default threadtest values to simplify execution scripts 2015-03-19 12:03:34 -06:00
valid-adjtimex.c selftests/timers: Add adjtimex validation test from timetest suite 2015-03-12 13:22:14 -06:00