Skip to content

Commit aa297f0

Browse files
committed
Revert "Forward LD_LIBRARY_PATH in this test"
This reverts commit 1a34d8d. Already fixed by upstream 07b7a24.
1 parent aa102b6 commit aa297f0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Diff for: llvm/unittests/Support/CrashRecoveryTest.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,6 @@ TEST(CrashRecoveryTest, UnixCRCReturnCode) {
173173
int Res = setenv("LLVM_CRC_UNIXCRCRETURNCODE", "1", 0);
174174
ASSERT_EQ(Res, 0);
175175

176-
// LD_LIBRARY_PATH is too precious to not to include it in the environment.
177-
// We declare it here to make sure it lives long enough because we will put
178-
// it in an array of StringRef.
179-
std::string LdLibraryPath;
180-
if (const char *Value = getenv("LD_LIBRARY_PATH")) {
181-
LdLibraryPath = "LD_LIBRARY_PATH=";
182-
LdLibraryPath += Value;
183-
EnvTable.push_back(LdLibraryPath);
184-
}
185-
186176
std::string Error;
187177
bool ExecutionFailed;
188178
int RetCode = ExecuteAndWait(Executable, argv, {}, {}, 0, 0, &Error,

0 commit comments

Comments
 (0)