linux/tools/testing/selftests/timers
Shuah Khan eefd95e1f3 selftests: timers: set-timer-lat: Fix hang when testing unsupported alarms
When timer_create() fails on a bootime or realtime clock, setup_timer()
returns 0 as if timer has been set. Callers wait forever for the timer
to expire.

This hang is seen on a system that doesn't have support for:

CLOCK_REALTIME_ALARM   ABSTIME missing CAP_WAKE_ALARM? : [UNSUPPORTED]

Test hangs waiting for a timer that hasn't been set to expire. Fix
setup_timer() to return 1, add handling in callers to detect the
unsupported case and return 0 without waiting to not fail the test.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2017-09-25 10:09:07 -06:00
..
.gitignore
adjtick.c
alarmtimer-suspend.c
change_skew.c
clocksource-switch.c
freq-step.c
inconsistency-check.c
leap-a-day.c
leapcrash.c
Makefile
mqueue-lat.c
nanosleep.c
nsleep-lat.c
posix_timers.c
raw_skew.c
rtctest_setdate.c
rtctest.c
set-2038.c
set-tai.c
set-timer-lat.c selftests: timers: set-timer-lat: Fix hang when testing unsupported alarms 2017-09-25 10:09:07 -06:00
set-tz.c
skew_consistency.c
threadtest.c
valid-adjtimex.c