[compiler-rt] r202013 - [asan] Avoid hardcoding library path in test binary.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Feb 24 02:03:33 PST 2014


Author: eugenis
Date: Mon Feb 24 04:03:33 2014
New Revision: 202013

URL: http://llvm.org/viewvc/llvm-project?rev=202013&view=rev
Log:
[asan] Avoid hardcoding library path in test binary.

Modified:
    compiler-rt/trunk/test/asan/TestCases/Linux/coverage.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/coverage.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/coverage.cc?rev=202013&r1=202012&r2=202013&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/coverage.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/coverage.cc Mon Feb 24 04:03:33 2014
@@ -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





More information about the llvm-commits mailing list