aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/Host
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/unittests/Host')
-rw-r--r--lldb/unittests/Host/MainLoopTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/unittests/Host/MainLoopTest.cpp b/lldb/unittests/Host/MainLoopTest.cpp
index 0bc291c..ae16d02 100644
--- a/lldb/unittests/Host/MainLoopTest.cpp
+++ b/lldb/unittests/Host/MainLoopTest.cpp
@@ -424,9 +424,9 @@ TEST_F(MainLoopTest, ManyPendingCallbacks) {
TEST_F(MainLoopTest, CallbackWithTimeout) {
MainLoop loop;
+ auto start = std::chrono::steady_clock::now();
loop.AddCallback([](MainLoopBase &loop) { loop.RequestTermination(); },
std::chrono::seconds(2));
- auto start = std::chrono::steady_clock::now();
ASSERT_THAT_ERROR(loop.Run().takeError(), llvm::Succeeded());
EXPECT_GE(std::chrono::steady_clock::now() - start, std::chrono::seconds(2));
}