linux/tools/testing/selftests/timers
Po-Hsu Lin 0d3e5a0579 selftests: timers: rtcpie: skip test if default RTC device does not exist
This test will require /dev/rtc0, the default RTC device, or one
specified by user to run. Since this default RTC is not guaranteed to
exist on all of the devices, so check its existence first, otherwise
skip this test with the kselftest skip code 4.

Without this patch this test will fail like this on a s390x zVM:
$ selftests: timers: rtcpie
$ /dev/rtc0: No such file or directory
not ok 1 selftests: timers: rtcpie # exit=22

With this patch:
$ selftests: timers: rtcpie
$ Default RTC /dev/rtc0 does not exist. Test Skipped!
not ok 9 selftests: timers: rtcpie # SKIP

Fixed up change log so "With this patch" text doesn't get dropped.
Shuah Khan <skhan@linuxfoundation.org>

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-06-07 19:18:52 -06:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
adjtick.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -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 timekeeping, clocksource: Fix various typos in comments 2021-03-22 23:06:48 +01:00
freq-step.c kselftests: timers: freq-step: Update maximum acceptable precision and errors 2019-06-22 11:28:53 +02:00
inconsistency-check.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
leap-a-day.c timekeeping, clocksource: Fix various typos in comments 2021-03-22 23:06:48 +01:00
leapcrash.c timekeeping, clocksource: Fix various typos in comments 2021-03-22 23:06:48 +01:00
Makefile selftests/timers: Turn off timeout setting 2020-08-20 15:49:28 -06:00
mqueue-lat.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06:00
nanosleep.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06:00
nsleep-lat.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06:00
posix_timers.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 166 2019-05-30 11:26:39 -07:00
raw_skew.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06:00
rtcpie.c selftests: timers: rtcpie: skip test if default RTC device does not exist 2021-06-07 19:18:52 -06:00
set-2038.c selftests: timers: drop support for !KTEST case 2017-08-22 11:15:59 -06:00
set-tai.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -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: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06:00
settings selftests/timers: Turn off timeout setting 2020-08-20 15:49:28 -06:00
skew_consistency.c selftest/timers: Remove duplicate header 2019-04-08 16:18:21 -06:00
threadtest.c timekeeping, clocksource: Fix various typos in comments 2021-03-22 23:06:48 +01:00
valid-adjtimex.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06:00