Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions llvm/unittests/Support/ProgramTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,14 @@ TEST_F(ProgramEnvTest, TestExecuteEmptyEnvironment) {
int RetCode = ExecuteAndWait(Executable, argv, ArrayRef<StringRef>{}, {}, 0,
0, &Error, &ExecutionFailed);
EXPECT_FALSE(ExecutionFailed) << Error;
#ifndef __MINGW32__
// When running with an empty environment, the child process doesn't in herit
// the PATH variable. On MinGW, it is common for executables to require a
// shared libstdc++ or libc++ DLL, which may be in PATH but not in the
// directory of SupportTests.exe - leading to STATUS_DLL_NOT_FOUND errors.
// Therefore, waive this failure in MinGW environments.
ASSERT_EQ(0, RetCode);
#endif
}

} // end anonymous namespace