Skip to content

Commit afee9f0

Browse files
committed
Explicitly set DetachProcess to false in unit test
1 parent 7baff4d commit afee9f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/unittests/Support/ProgramTest.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ TEST_F(ProgramEnvTest, TestExecuteNoWaitDetached) {
313313
Env.emplace_back("LLVM_PROGRAM_TEST_EXECUTE_NO_WAIT_DETACHED_TRUE=1");
314314
ProcessInfo PI1 =
315315
ExecuteNoWait(Executable, argv, Env, {}, 0, &Error, &ExecutionFailed,
316-
nullptr, /*DetachedProcess=*/true);
316+
nullptr, /*DetachProcess=*/true);
317317
ASSERT_FALSE(ExecutionFailed) << Error;
318318
ASSERT_NE(PI1.Pid, ProcessInfo::InvalidPid) << "Invalid process id";
319319
ProcessInfo WaitResult = Wait(PI1, std::nullopt, &Error);
@@ -324,8 +324,9 @@ TEST_F(ProgramEnvTest, TestExecuteNoWaitDetached) {
324324
{
325325
std::string Error;
326326
bool ExecutionFailed;
327-
ProcessInfo PI2 = ExecuteNoWait(Executable, argv, getEnviron(), {}, 0,
328-
&Error, &ExecutionFailed, nullptr);
327+
ProcessInfo PI2 =
328+
ExecuteNoWait(Executable, argv, getEnviron(), {}, 0, &Error,
329+
&ExecutionFailed, nullptr, /*DetachProcess=*/false);
329330
ASSERT_FALSE(ExecutionFailed) << Error;
330331
ASSERT_NE(PI2.Pid, ProcessInfo::InvalidPid) << "Invalid process id";
331332
ProcessInfo WaitResult = Wait(PI2, std::nullopt, &Error);

0 commit comments

Comments
 (0)