linux-stable/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 selftests: add missing set-tz to timers .gitignore 2016-12-08 08:51:14 -07:00
adjtick.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
alarmtimer-suspend.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
change_skew.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
clocksource-switch.c selftests/timers: make loop consistent with array size 2017-08-25 10:00:51 -06:00
freq-step.c Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 13:06:34 -07:00
inconsistency-check.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
leap-a-day.c kselftests: timers: leap-a-day: Change default arguments to help test runs 2017-08-22 11:34:52 -06:00
leapcrash.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
Makefile selftests: change lib.mk RUN_TESTS to take test list as an argument 2017-08-25 10:15:24 -06:00
mqueue-lat.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
nanosleep.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
nsleep-lat.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
posix_timers.c selftests/timers: Add missing error code assignment before test 2016-09-20 09:00:28 -06:00
raw_skew.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
rtctest.c rtc: rtctest: Improve support detection 2017-08-16 17:48:19 -06:00
rtctest_setdate.c tools: timer: add rtctest_setdate 2017-07-09 22:00:54 +02:00
set-2038.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
set-tai.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
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 selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
skew_consistency.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
threadtest.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
valid-adjtimex.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00