• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 731afab6ebf29dae117796125af1518ddb78711d Mon Sep 17 00:00:00 2001
2From: Edward Liaw <edliaw@google.com>
3Date: Tue, 19 Apr 2022 23:06:36 +0000
4Subject: [PATCH 10/24] disable rtc 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 66af608fb4c6a..92c403558dc5f 100644
15--- a/tools/testing/selftests/rtc/rtctest.c
16+++ b/tools/testing/selftests/rtc/rtctest.c
17@@ -49,6 +49,7 @@ TEST_F(rtc, date_read) {
18 	       rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec);
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@@ -312,6 +313,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.36.0.550.gb090851708-goog
35
36