summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-04-01 11:51:50 +0000
committerAlexey Samsonov <samsonov@google.com>2014-04-01 11:51:50 +0000
commitf9470a30623dab95050c32e10576d706b13675dd (patch)
treebb8ecc84f587f0dc66ab9142c7ff00d8f6966af3
parent80d1f86a449753e27995f6922b09359434f570de (diff)
[TSan] Make this test more portable
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205300 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/tsan/ignore_lib0.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tsan/ignore_lib0.cc b/test/tsan/ignore_lib0.cc
index ea0f061e6..e24cf804b 100644
--- a/test/tsan/ignore_lib0.cc
+++ b/test/tsan/ignore_lib0.cc
@@ -1,9 +1,9 @@
// RUN: %clangxx_tsan -O1 %s -DLIB -fPIC -fno-sanitize=thread -shared -o %T/libignore_lib0.so
// RUN: %clangxx_tsan -O1 %s -L%T -lignore_lib0 -o %t
// RUN: echo running w/o suppressions:
-// RUN: LD_LIBRARY_PATH=%T not %t 2>&1 | FileCheck %s --check-prefix=CHECK-NOSUPP
+// RUN: LD_LIBRARY_PATH=%T${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} not %t 2>&1 | FileCheck %s --check-prefix=CHECK-NOSUPP
// RUN: echo running with suppressions:
-// RUN: LD_LIBRARY_PATH=%T TSAN_OPTIONS="$TSAN_OPTIONS suppressions=%s.supp" %t 2>&1 | FileCheck %s --check-prefix=CHECK-WITHSUPP
+// RUN: LD_LIBRARY_PATH=%T${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} TSAN_OPTIONS="$TSAN_OPTIONS suppressions=%s.supp" %t 2>&1 | FileCheck %s --check-prefix=CHECK-WITHSUPP
// Tests that interceptors coming from a library specified in called_from_lib
// suppression are ignored.