linux_dsm_epyc7002/tools/testing/selftests/timers
Po-Hsu Lin 52d242f2bf selftests: timers: rtcpie: skip test if default RTC device does not exist
[ Upstream commit 0d3e5a057992bdc66e4dca2ca50b77fa4a7bd90e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:05:42 +02: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 selftests/timers: make loop consistent with array size 2017-08-25 10:00:51 -06: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 kselftests: timers: leap-a-day: Change default arguments to help test runs 2017-08-22 11:34:52 -06:00
leapcrash.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06: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-07-20 16:05:42 +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: 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 selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06:00
valid-adjtimex.c selftests/timers: Add missing fflush(stdout) calls 2019-05-21 09:24:31 -06:00