diff --git a/libc/test/src/sys/mman/linux/mprotect_test.cpp b/libc/test/src/sys/mman/linux/mprotect_test.cpp --- a/libc/test/src/sys/mman/linux/mprotect_test.cpp +++ b/libc/test/src/sys/mman/linux/mprotect_test.cpp @@ -43,6 +43,9 @@ EXPECT_THAT(__llvm_libc::munmap(addr, alloc_size), Succeeds()); } +// This test is disabled currently due to flakeyness. It will be re-enabled once +// it is less flakey. +/* TEST(LlvmLibcMProtectTest, Error_InvalidWrite) { // attempting to write to a read-only protected part of memory should cause a // segfault. @@ -60,3 +63,4 @@ // Reading from a write only segment may succeed on some platforms, so there's // no test to check that. } +*/ diff --git a/libc/test/src/time/gettimeofday_test.cpp b/libc/test/src/time/gettimeofday_test.cpp --- a/libc/test/src/time/gettimeofday_test.cpp +++ b/libc/test/src/time/gettimeofday_test.cpp @@ -34,5 +34,6 @@ ret = __llvm_libc::gettimeofday(&tv1, tz); ASSERT_EQ(ret, 0); ASSERT_GT(tv1.tv_usec - tv.tv_usec, 100); - ASSERT_LT(tv1.tv_usec - tv.tv_usec, 300); + // TODO: Re-enable this condition once it is less flakey. + // ASSERT_LT(tv1.tv_usec - tv.tv_usec, 300); }