HomePhabricator

[unittests] Preserve LD_LIBRARY_PATH in crash recovery test

Authored by miyuki on Sep 28 2020, 9:46 AM.

Description

[unittests] Preserve LD_LIBRARY_PATH in crash recovery test

We need to preserve the LD_LIBRARY_PATH environment variable when
spawning a child process (certain setups rely on non-standard paths
for e.g. libstdc++). In order to achieve this, set
LLVM_CRC_UNIXCRCRETURNCODE in the parent process instead of creating
the child's environment from scratch.

Reviewed By: aganea

Differential Revision: https://reviews.llvm.org/D88308

Details

Committed
miyukiSep 28 2020, 9:46 AM
Reviewer
aganea
Differential Revision
D88308: [unittests] Preserve LD_LIBRARY_PATH in crash recovery test
Parents
rG06bc685fa240: [ubsan] nullability-arg: Fix crash on C++ member pointers
Branches
Unknown
Tags
Unknown