diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-02-24 10:03:33 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-02-24 10:03:33 +0000 |
commit | 86e7bdeec2d4006fca8c43a0b70105d31ee3bdd8 (patch) | |
tree | 20d7e9181015510084e16810b34ec4862f43aac2 /test | |
parent | 39b8bad2be5ce1b7a77a41176914f10c768a5722 (diff) |
[asan] Avoid hardcoding library path in test binary.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/asan/TestCases/Linux/coverage.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/asan/TestCases/Linux/coverage.cc b/test/asan/TestCases/Linux/coverage.cc index 449e1c446..7c75b0960 100644 --- a/test/asan/TestCases/Linux/coverage.cc +++ b/test/asan/TestCases/Linux/coverage.cc @@ -1,5 +1,5 @@ -// RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSHARED %s -shared -o %t.so -fPIC -// RUN: %clangxx_asan -mllvm -asan-coverage=1 %s -o %t -Wl,-R. %t.so +// RUN: %clangxx_asan -mllvm -asan-coverage=1 -DSHARED %s -shared -o %T/libcoverage_test.so -fPIC -Wl,--soname,libcoverage_test.so +// RUN: %clangxx_asan -mllvm -asan-coverage=1 %s -o %t -Wl,-R,\$ORIGIN -L%T -lcoverage_test // RUN: export ASAN_OPTIONS=coverage=1:verbosity=1 // RUN: %t 2>&1 | FileCheck %s --check-prefix=CHECK-main // RUN: %t foo 2>&1 | FileCheck %s --check-prefix=CHECK-foo |