[clang] bddef54 - Raise the timeout in DirectoryWatcherTest to 10 s
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 05:25:37 PDT 2020
Author: Hans Wennborg
Date: 2020-10-13T14:25:25+02:00
New Revision: bddef54c502811fa1406d1161d4baa15b56ebc32
URL: https://github.com/llvm/llvm-project/commit/bddef54c502811fa1406d1161d4baa15b56ebc32
DIFF: https://github.com/llvm/llvm-project/commit/bddef54c502811fa1406d1161d4baa15b56ebc32.diff
LOG: Raise the timeout in DirectoryWatcherTest to 10 s
After D88666, which implemented DirectoryWatcher on Windows, we're
seeing test failures on Chromium's Windows bots.
Try raising the timeout in case the test is failing due to high load on
the machine.
Added:
Modified:
clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp b/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
index 650c0fc49764..4d4a4614740d 100644
--- a/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
+++ b/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
@@ -243,7 +243,7 @@ void checkEventualResultWithTimeout(VerifyingConsumer &TestConsumer) {
std::thread worker(std::move(task));
worker.detach();
- EXPECT_TRUE(WaitForExpectedStateResult.wait_for(std::chrono::seconds(3)) ==
+ EXPECT_TRUE(WaitForExpectedStateResult.wait_for(std::chrono::seconds(10)) ==
std::future_status::ready)
<< "The expected result state wasn't reached before the time-out.";
std::unique_lock<std::mutex> L(TestConsumer.Mtx);
More information about the cfe-commits
mailing list