]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftest: rtc: Check if could access /dev/rtc0 before testing
authorJoseph Jang <jjang@nvidia.com>
Fri, 24 May 2024 01:38:07 +0000 (18:38 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 30 Sep 2024 17:32:07 +0000 (11:32 -0600)
commit1ad999870a86d58246b6a614a435d055a9edf269
treeeeded32d5c81a5bb1066f75f0c4f25bc3646c2a0
parent9852d85ec9d492ebef56dc5f229416c925758edc
selftest: rtc: Check if could access /dev/rtc0 before testing

The rtctest requires the read permission on /dev/rtc0. The rtctest will
be skipped if the /dev/rtc0 is not readable.

Reviewed-by: Koba Ko <kobak@nvidia.com>
Reviewed-by: Matthew R. Ochs <mochs@nvidia.com>
Signed-off-by: Joseph Jang <jjang@nvidia.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/rtc/rtctest.c