diff options
author | Shuah Khan <shuahkh@osg.samsung.com> | 2017-09-21 13:05:18 -0600 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-09-25 10:09:07 -0600 |
commit | eefd95e1f3d47b90dc768e9ebc77d390c4f34809 (patch) | |
tree | 0ff7cd4c9d969e3f41263fdfc33c9c08ebd8af0a /drivers/hwtracing | |
parent | 01db7fbf5487505b887fbd6a03c51f2adc952196 (diff) | |
download | linux-eefd95e1f3d47b90dc768e9ebc77d390c4f34809.tar.bz2 |
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>
Diffstat (limited to 'drivers/hwtracing')
0 files changed, 0 insertions, 0 deletions