diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-01-27 01:29:18 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-01-27 01:29:18 +0000 |
commit | aa772feb8ec053b2c8cef2fe6af5676157334f36 (patch) | |
tree | 27e7b95afac8021d7beb73694edc0dcd90b8b78c /compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc | |
parent | 349d5886e58e39d6492655e6d0acbf3307332892 (diff) | |
download | bcm5719-llvm-aa772feb8ec053b2c8cef2fe6af5676157334f36.tar.gz bcm5719-llvm-aa772feb8ec053b2c8cef2fe6af5676157334f36.zip |
[ASan] Use rpath in tests that produce a shared library
Modifying Darwin/interception-in-shared-lib-test.cc and suppressions-library.cc
to use rpath instead of linking against the full path to the temporary file.
NFC.
llvm-svn: 227161
Diffstat (limited to 'compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc')
-rw-r--r-- | compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc b/compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc index e472a9dc697..028683d2fc4 100644 --- a/compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc +++ b/compiler-rt/test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc @@ -3,11 +3,11 @@ // ../Linux/interception-in-shared-lib-test.cc. // RUN: %clangxx_asan -O0 %s -DSHARED_LIB \ -// RUN: -shared -o %T/libinterception-in-shared-lib-test.so \ -// RUN: -fPIC +// RUN: -shared -o %t-so.so \ +// RUN: -fPIC -install_name @rpath/interception-in-shared-lib-test.cc.tmp-so.so // TODO(glider): figure out how to set rpath in a more portable way and unite // this test with ../Linux/interception-in-shared-lib-test.cc. -// RUN: %clangxx_asan -O0 %s -o %t -Wl,-rpath,@executable-path -L%T -linterception-in-shared-lib-test && \ +// RUN: %clangxx_asan -O0 %s -o %t -Wl,-rpath,@executable_path %t-so.so && \ // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> |