Use the proper framework call to mark a test as skipped. Currently, the test is considered good, only the printout mentions the skip.
Signed-off-by: Wolfram Sang <[email protected]> --- tools/testing/selftests/rtc/rtctest.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/rtc/rtctest.c b/tools/testing/selftests/rtc/rtctest.c index 077cdc2c6f87..962050a32985 100644 --- a/tools/testing/selftests/rtc/rtctest.c +++ b/tools/testing/selftests/rtc/rtctest.c @@ -163,8 +163,7 @@ TEST_F_TIMEOUT(rtc, uie_read, NUM_UIE + 2) { rc = ioctl(self->fd, RTC_UIE_ON, 0); if (rc == -1) { ASSERT_EQ(EINVAL, errno); - TH_LOG("skip update IRQs not supported."); - return; + SKIP(return, "update IRQs are not supported."); } for (i = 0; i < NUM_UIE; i++) { @@ -192,8 +191,7 @@ TEST_F(rtc, uie_select) { rc = ioctl(self->fd, RTC_UIE_ON, 0); if (rc == -1) { ASSERT_EQ(EINVAL, errno); - TH_LOG("skip update IRQs not supported."); - return; + SKIP(return, "update IRQs are not supported."); } for (i = 0; i < NUM_UIE; i++) { -- 2.53.0
