selftests: rtc: skip when RTC is not present
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Nov 2022 20:21:05 +0000 (21:21 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 15 Nov 2022 20:30:51 +0000 (13:30 -0700)
commit35eee9a363becb854109e35d568299bafc97c9d1
treef3a29d2da27ba5aa0385599250ace54e100a52d5
parenta1d6cd88c8973cfb08ee85722488b1d6d5d16327
selftests: rtc: skip when RTC is not present

There is no point in failing the tests when RTC is not present.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Tested-by: Daniel Diaz <daniel.diaz@linaro.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/rtc/rtctest.c