Temporarily disable some clock_getres tests.
A kernel update broke three clock_getres tests, so disable
them while the kernel is fixed.
Bug: 141515847
Test: All tests pass on cuttlefish.
Change-Id: I7db789b2b8ba0bc5f8b13bb06e85711031735925
diff --git a/tests/time_test.cpp b/tests/time_test.cpp
index 4e17242..51adf13 100644
--- a/tests/time_test.cpp
+++ b/tests/time_test.cpp
@@ -708,6 +708,10 @@
}
TEST(time, clock_getres_CLOCK_REALTIME) {
+#if defined(__i386__)
+ // See b/141515847
+ GTEST_SKIP() << "Temporary disable until cuttlefish kernel is fixed.";
+#endif
timespec ts;
ASSERT_EQ(0, clock_getres(CLOCK_REALTIME, &ts));
ASSERT_EQ(1, ts.tv_nsec);
@@ -715,6 +719,10 @@
}
TEST(time, clock_getres_CLOCK_MONOTONIC) {
+#if defined(__i386__)
+ // See b/141515847
+ GTEST_SKIP() << "Temporary disable until cuttlefish kernel is fixed.";
+#endif
timespec ts;
ASSERT_EQ(0, clock_getres(CLOCK_MONOTONIC, &ts));
ASSERT_EQ(1, ts.tv_nsec);
@@ -732,6 +740,10 @@
}
TEST(time, clock_getres_CLOCK_BOOTTIME) {
+#if defined(__i386__)
+ // See b/141515847
+ GTEST_SKIP() << "Temporary disable until cuttlefish kernel is fixed.";
+#endif
timespec ts;
ASSERT_EQ(0, clock_getres(CLOCK_BOOTTIME, &ts));
ASSERT_EQ(1, ts.tv_nsec);