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 | d512234d7e2dffcf2baa62ba87be535d7c1cbe78 (patch) | |
| tree | 214dc36ef196300daf0e069242ec218ffbc5fa79 | |
| parent | 51c1b55bc2ff3dafde49f40306262aee4e662375 (diff) | |
| download | bcm5719-llvm-d512234d7e2dffcf2baa62ba87be535d7c1cbe78.tar.gz bcm5719-llvm-d512234d7e2dffcf2baa62ba87be535d7c1cbe78.zip | |
[asan] Avoid hardcoding library path in test binary.
llvm-svn: 202013
| -rw-r--r-- | compiler-rt/test/asan/TestCases/Linux/coverage.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/coverage.cc b/compiler-rt/test/asan/TestCases/Linux/coverage.cc index 449e1c44690..7c75b0960dc 100644 --- a/compiler-rt/test/asan/TestCases/Linux/coverage.cc +++ b/compiler-rt/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 |

