[compiler-rt] [compiler-rt] Fix some tests to work with lit internal shell. (PR #160728)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 23:54:43 PDT 2025


================
@@ -4,11 +4,12 @@
 // RUN: %clangxx_tsan -O1 -fno-builtin %s -DLIB -fPIC -fno-sanitize=thread -shared -o %t-dir/libignore_lib0.so
 // RUN: %clangxx_tsan -O1 %s -L%t-dir -lignore_lib0 %link_libcxx_tsan -o %t
 // RUN: echo running w/o suppressions:
-// RUN: env LD_LIBRARY_PATH=%t-dir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} %deflake %run %t | FileCheck %s --check-prefix=CHECK-NOSUPP
+// RUN: bash -c env | grep LD_LIBRARY_PATH | sed s/.*LD_LIBRARY_PATH=// > %t2
----------------
fmayer wrote:

Or wouldn't `sed s/.*LD_LIBRARY_PATH=/:/` give us the old behavior?

https://github.com/llvm/llvm-project/pull/160728


More information about the llvm-commits mailing list