We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d3d4e commit 982540cCopy full SHA for 982540c
lldb/unittests/Host/HostTest.cpp
@@ -19,6 +19,7 @@
19
#include "llvm/Testing/Support/Error.h"
20
#include "gtest/gtest.h"
21
#include <future>
22
+#include <thread>
23
24
using namespace lldb_private;
25
using namespace llvm;
@@ -109,6 +110,7 @@ TEST(Host, FindProcesses) {
109
110
exit_status.set_value(status);
111
});
112
ASSERT_THAT_ERROR(Host::LaunchProcess(info).takeError(), Succeeded());
113
+ std::this_thread::sleep_for(std::chrono::milliseconds(1000));
114
ASSERT_TRUE(Host::FindProcesses(match, processes));
115
ASSERT_EQ(processes[0].GetArg0(), TestMainArgv0);
116
ASSERT_THAT(exit_status.get_future().get(), 0);
0 commit comments