1From 87e967d443c698e097bfd35c53cdc6479ee92980 Mon Sep 17 00:00:00 2001
2From: Edward Liaw <[email protected]>
3Date: Tue, 19 Apr 2022 23:06:36 +0000
4Subject: [PATCH 12/20] rtctest: Disable incompatible tests
5
6Do not run unnecessary or incompatible rtc tests on Android.
7
8(cherry picked from commit 95b95a72b438f8efc105091f6122d0e99fd880b0)
9---
10 tools/testing/selftests/rtc/rtctest.c | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/tools/testing/selftests/rtc/rtctest.c b/tools/testing/selftests/rtc/rtctest.c
14index 2b9d929a24ed..0d2674b43cad 100644
15--- a/tools/testing/selftests/rtc/rtctest.c
16+++ b/tools/testing/selftests/rtc/rtctest.c
17@@ -115,6 +115,7 @@ TEST_F_TIMEOUT(rtc, date_read_loop, READ_LOOP_DURATION_SEC + 2) {
18 	TH_LOG("Performed %ld RTC time reads.", iter_count);
19 }
20
21+#ifndef __ANDROID__ // b/31578457
22 TEST_F_TIMEOUT(rtc, uie_read, NUM_UIE + 2) {
23 	int i, rc, irq = 0;
24 	unsigned long data;
25@@ -378,6 +379,7 @@ TEST_F_TIMEOUT(rtc, alarm_wkalm_set_minute, 65) {
26 	new = timegm((struct tm *)&tm);
27 	ASSERT_EQ(new, secs);
28 }
29+#endif
30
31 static void __attribute__((constructor))
32 __constructor_order_last(void)
33--
342.42.0.609.gbb76f46606-goog
35
36