From b2e723e4480c126512fdfe8e153fe9a836b02b32 Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Wed, 14 May 2014 14:16:09 +0000 Subject: [PATCH] [ASan tests] Update relative paths from POSIX-only tests to their shared libraries llvm-svn: 208778 --- .../test/asan/TestCases/Posix/init-order-dlopen.cc | 4 ++-- compiler-rt/test/asan/TestCases/Posix/shared-lib-test.cc | 8 ++++---- .../test/asan/TestCases/Posix/start-deactivated.cc | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/compiler-rt/test/asan/TestCases/Posix/init-order-dlopen.cc b/compiler-rt/test/asan/TestCases/Posix/init-order-dlopen.cc index 18afb0ca145b..836b8615f26b 100644 --- a/compiler-rt/test/asan/TestCases/Posix/init-order-dlopen.cc +++ b/compiler-rt/test/asan/TestCases/Posix/init-order-dlopen.cc @@ -3,9 +3,9 @@ // Assume we're on Darwin and try to pass -U to the linker. If this flag is // unsupported, don't use it. -// RUN: %clangxx_asan -O0 %p/SharedLibs/init-order-dlopen-so.cc \ +// RUN: %clangxx_asan -O0 %p/../SharedLibs/init-order-dlopen-so.cc \ // RUN: -fPIC -shared -o %t-so.so -Wl,-U,_inc_global || \ -// RUN: %clangxx_asan -O0 %p/SharedLibs/init-order-dlopen-so.cc \ +// RUN: %clangxx_asan -O0 %p/../SharedLibs/init-order-dlopen-so.cc \ // RUN: -fPIC -shared -o %t-so.so // If the linker doesn't support --export-dynamic (which is ELF-specific), // try to link without that option. diff --git a/compiler-rt/test/asan/TestCases/Posix/shared-lib-test.cc b/compiler-rt/test/asan/TestCases/Posix/shared-lib-test.cc index e11a5066c042..60037344c876 100644 --- a/compiler-rt/test/asan/TestCases/Posix/shared-lib-test.cc +++ b/compiler-rt/test/asan/TestCases/Posix/shared-lib-test.cc @@ -1,10 +1,10 @@ -// RUN: %clangxx_asan -O0 %p/SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so +// RUN: %clangxx_asan -O0 %p/../SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so // RUN: %clangxx_asan -O0 %s -ldl -o %t && not %run %t 2>&1 | FileCheck %s -// RUN: %clangxx_asan -O1 %p/SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so +// RUN: %clangxx_asan -O1 %p/../SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so // RUN: %clangxx_asan -O1 %s -ldl -o %t && not %run %t 2>&1 | FileCheck %s -// RUN: %clangxx_asan -O2 %p/SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so +// RUN: %clangxx_asan -O2 %p/../SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so // RUN: %clangxx_asan -O2 %s -ldl -o %t && not %run %t 2>&1 | FileCheck %s -// RUN: %clangxx_asan -O3 %p/SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so +// RUN: %clangxx_asan -O3 %p/../SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so // RUN: %clangxx_asan -O3 %s -ldl -o %t && not %run %t 2>&1 | FileCheck %s #include diff --git a/compiler-rt/test/asan/TestCases/Posix/start-deactivated.cc b/compiler-rt/test/asan/TestCases/Posix/start-deactivated.cc index bf0b1277d8b0..a7811aee66a7 100644 --- a/compiler-rt/test/asan/TestCases/Posix/start-deactivated.cc +++ b/compiler-rt/test/asan/TestCases/Posix/start-deactivated.cc @@ -2,7 +2,7 @@ // Main executable is uninstrumented, but linked to ASan runtime. The shared // library is instrumented. Memory errors before dlopen are not detected. -// RUN: %clangxx_asan -O0 %p/SharedLibs/start-deactivated-so.cc -fPIC -shared -o %t-so.so +// RUN: %clangxx_asan -O0 %p/../SharedLibs/start-deactivated-so.cc -fPIC -shared -o %t-so.so // RUN: %clangxx -O0 %s -c -o %t.o // RUN: %clangxx_asan -O0 %t.o -ldl -o %t // RUN: ASAN_OPTIONS=start_deactivated=1 not %run %t 2>&1 | FileCheck %s