aboutsummaryrefslogtreecommitdiff
path: root/android/patches/0010-disable-rtc-tests.patch
blob: 82b842c31c83eefd06182bdf6ad9dd6c62891b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 731afab6ebf29dae117796125af1518ddb78711d Mon Sep 17 00:00:00 2001
From: Edward Liaw <edliaw@google.com>
Date: Tue, 19 Apr 2022 23:06:36 +0000
Subject: [PATCH 10/24] disable rtc tests

Do not run unnecessary or incompatible rtc tests on Android.

(cherry picked from commit 95b95a72b438f8efc105091f6122d0e99fd880b0)
---
 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 66af608fb4c6a..92c403558dc5f 100644
--- a/tools/testing/selftests/rtc/rtctest.c
+++ b/tools/testing/selftests/rtc/rtctest.c
@@ -49,6 +49,7 @@ TEST_F(rtc, date_read) {
 	       rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec);
 }
 
+#ifndef __ANDROID__ // b/31578457
 TEST_F_TIMEOUT(rtc, uie_read, NUM_UIE + 2) {
 	int i, rc, irq = 0;
 	unsigned long data;
@@ -312,6 +313,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)
-- 
2.36.0.550.gb090851708-goog