Skip to content

Commit fed785f

Browse files
committed
Fix the OnDiskCASLoggerTest/MultiProcess test on Windows (#11395)
LLVM-Unit :: CAS/./CASTests.exe/OnDiskCASLoggerTest/MultiProcess (Cherry picked from commit fccf510)
1 parent ad05b82 commit fed785f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/unittests/CAS/OnDiskCASLoggerTest.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,7 @@ TEST(OnDiskCASLoggerTest, MultiProcess) {
159159
SmallVector<ProcessInfo> PIs;
160160
for (int I = 0; I < 5; ++I) {
161161
bool ExecutionFailed;
162-
#ifndef _WIN32
163162
auto PI = ExecuteNoWait(Executable, Argv, ArrayRef<StringRef>{}, {}, 0, &Error,
164-
#else
165-
// CreateProcessW will fail with zero-length env on Windows
166-
auto PI = ExecuteNoWait(Executable, Argv, std::nullopt, {}, 0, &Error,
167-
#endif
168163
&ExecutionFailed);
169164
ASSERT_FALSE(ExecutionFailed) << Error;
170165
PIs.push_back(std::move(PI));

0 commit comments

Comments
 (0)