From 27db10cc070340314e1c2025c88f806a99f6eb89 Mon Sep 17 00:00:00 2001 From: Wake Liu Date: Thu, 24 Jul 2025 20:08:10 +0800 Subject: [PATCH] ANDROID: selftests/rtc: do not run update, periodic IRQ tests on Android Android does not require the update or periodic IRQs from the RTC, so do not test this. Original-Bug: 31578457 Bug: 422759683 Test: mma Signed-off-by: Edward Liaw Signed-off-by: Wake Liu Change-Id: I954b425befc0c4a76ad40bfb8cf852a615e79461 --- tools/testing/selftests/rtc/rtctest.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tools/testing/selftests/rtc/rtctest.c b/tools/testing/selftests/rtc/rtctest.c index be175c0e6ae3c..61a678c1e4d7e 100644 --- a/tools/testing/selftests/rtc/rtctest.c +++ b/tools/testing/selftests/rtc/rtctest.c @@ -152,6 +152,10 @@ TEST_F_TIMEOUT(rtc, date_read_loop, READ_LOOP_DURATION_SEC + 2) { } TEST_F_TIMEOUT(rtc, uie_read, NUM_UIE + 2) { +#ifdef __ANDROID__ // b/31578457 + SKIP(return, "Skipping test for Android"); +#endif + int i, rc, irq = 0; unsigned long data; @@ -181,6 +185,10 @@ TEST_F_TIMEOUT(rtc, uie_read, NUM_UIE + 2) { } TEST_F(rtc, uie_select) { +#ifdef __ANDROID__ // b/31578457 + SKIP(return, "Skipping test for Android"); +#endif + int i, rc, irq = 0; unsigned long data; @@ -220,6 +228,10 @@ TEST_F(rtc, uie_select) { } TEST_F(rtc, alarm_alm_set) { +#ifdef __ANDROID__ // b/31578457 + SKIP(return, "Skipping test for Android"); +#endif + struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; unsigned long data; struct rtc_time tm; @@ -289,6 +301,10 @@ TEST_F(rtc, alarm_alm_set) { } TEST_F(rtc, alarm_wkalm_set) { +#ifdef __ANDROID__ // b/31578457 + SKIP(return, "Skipping test for Android"); +#endif + struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; struct rtc_wkalrm alarm = { 0 }; struct rtc_time tm; @@ -354,6 +370,10 @@ TEST_F(rtc, alarm_wkalm_set) { } TEST_F_TIMEOUT(rtc, alarm_alm_set_minute, 65) { +#ifdef __ANDROID__ // b/31578457 + SKIP(return, "Skipping test for Android"); +#endif + struct timeval tv = { .tv_sec = 62 }; unsigned long data; struct rtc_time tm; @@ -421,6 +441,10 @@ TEST_F_TIMEOUT(rtc, alarm_alm_set_minute, 65) { } TEST_F_TIMEOUT(rtc, alarm_wkalm_set_minute, 65) { +#ifdef __ANDROID__ // b/31578457 + SKIP(return, "Skipping test for Android"); +#endif + struct timeval tv = { .tv_sec = 62 }; struct rtc_wkalrm alarm = { 0 }; struct rtc_time tm; -- 2.50.1.703.g449372360f-goog