From 72d0c10ed397109c6318cb606593e05acbbeebc0 Mon Sep 17 00:00:00 2001 From: Edward Liaw Date: Thu, 7 Dec 2023 13:32:28 +0000 Subject: [PATCH] ANDROID: 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. Bug: 31578457 Signed-off-by: Steve Muckle Change-Id: I134db4e0af8fd647fb5d61906e32219c7706b238 Signed-off-by: Edward Liaw --- tools/testing/selftests/rtc/rtctest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/rtc/rtctest.c b/tools/testing/selftests/rtc/rtctest.c index 63ce02d1d5cc..5df7316ca61a 100644 --- a/tools/testing/selftests/rtc/rtctest.c +++ b/tools/testing/selftests/rtc/rtctest.c @@ -122,6 +122,7 @@ TEST_F_TIMEOUT(rtc, date_read_loop, READ_LOOP_DURATION_SEC + 2) { TH_LOG("Performed %ld RTC time reads.", iter_count); } +#ifndef __ANDROID__ // b/31578457 TEST_F_TIMEOUT(rtc, uie_read, NUM_UIE + 2) { int i, rc, irq = 0; unsigned long data; @@ -409,6 +410,7 @@ TEST_F_TIMEOUT(rtc, alarm_wkalm_set_minute, 65) { new = timegm((struct tm *)&tm); ASSERT_EQ(new, secs); } +#endif static void __attribute__((constructor)) __constructor_order_last(void)