[llvm-branch-commits] [TSan] Make Test work with Internal Shell (PR #165147)

Aiden Grossman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Oct 30 12:55:02 PDT 2025


================
@@ -4,11 +4,13 @@
 // 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: echo -n %t-dir > %t.ld_library_path
+// RUN: python -c "if 'LD_LIBRARY_PATH' in __import__('os').environ: print(':' + __import__('os').environ['LD_LIBRARY_PATH'])" | tr -d '\n' >> %t.ld_library_path
----------------
boomanaiden154 wrote:

Looks like a tad bit simpler. Updated.

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


More information about the llvm-branch-commits mailing list