android_kernel_motorola_sm6375/tools
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Po-Hsu Lin d481ddb1b6 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:10:43 +02:00
..
accounting
arch ia64: tools: remove duplicate definition of ia64_mf() on ia64 2021-04-28 13:19:16 +02:00
bpf tools/bpftool: Fix error return code in do_batch() 2021-07-14 16:53:28 +02:00
build
cgroup
debugging
firewire
firmware
gpio
hv
iio
include tools headers UAPI: Sync linux/in.h copy with the kernel sources 2021-06-23 14:41:31 +02:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Fix BTF dump of pointer-to-array-of-struct 2021-03-30 14:35:27 +02:00
memory-model
nfsd
objtool
pci
pcmcia
perf perf bench: Fix 2 memory sanitizer warnings 2021-07-19 08:53:14 +02:00
power tweewide: Fix most Shebang lines 2021-05-22 11:38:30 +02:00
scripts
spi
testing selftests: timers: rtcpie: skip test if default RTC device does not exist 2021-07-20 16:10:43 +02:00
thermal/tmon
time
usb usbip: tools: fix build error for multiple definition 2021-03-09 11:09:38 +01:00
virtio
vm
wmi
Makefile