rtc: rtctest: Improve support detection
authorLukáš Doktor <ldoktor@redhat.com>
Tue, 15 Aug 2017 08:46:00 +0000 (10:46 +0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 16 Aug 2017 23:48:19 +0000 (17:48 -0600)
commit4db26f9e642bdf55ba54c559839e8ef9495b83c7
tree5f4c613effb8f9934e16352fe0e3e018c9fdc445
parent86db9a11f39585e36978348410a01feb25e56be8
rtc: rtctest: Improve support detection

The rtc-generic and opal-rtc are failing to run this test as they do not
support all the features. Let's treat the error returns and skip to the
following test.

Theoretically the test_DATE should be also adjusted, but as it's enabled
on demand I think it makes sense to fail in such case.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/timers/rtctest.c