[all-commits] [llvm/llvm-project] 07b7a2: [unittests] Preserve LD_LIBRARY_PATH in crash reco...

Mikhail Maltsev via All-commits all-commits at lists.llvm.org
Mon Sep 28 09:46:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 07b7a24e3fe86fe64ba5a56629cb290f3bd3b86d
      https://github.com/llvm/llvm-project/commit/07b7a24e3fe86fe64ba5a56629cb290f3bd3b86d
  Author: Mikhail Maltsev <mikhail.maltsev at arm.com>
  Date:   2020-09-28 (Mon, 28 Sep 2020)

  Changed paths:
    M llvm/unittests/Support/CrashRecoveryTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list