[compiler-rt] r208778 - [ASan tests] Update relative paths from POSIX-only tests to their shared libraries

Kostya Serebryany kcc at google.com
Wed May 14 07:34:43 PDT 2014


Ungood.
May I ask you to completely get rid of these SharedLibs?
take a look at e.g. ./asan/TestCases/Linux/stress_dtls.c



On Wed, May 14, 2014 at 6:16 PM, Timur Iskhodzhanov <timurrrr at google.com>wrote:

> Author: timurrrr
> Date: Wed May 14 09:16:09 2014
> New Revision: 208778
>
> URL: http://llvm.org/viewvc/llvm-project?rev=208778&view=rev
> Log:
> [ASan tests] Update relative paths from POSIX-only tests to their shared
> libraries
>
> Modified:
>     compiler-rt/trunk/test/asan/TestCases/Posix/init-order-dlopen.cc
>     compiler-rt/trunk/test/asan/TestCases/Posix/shared-lib-test.cc
>     compiler-rt/trunk/test/asan/TestCases/Posix/start-deactivated.cc
>
> Modified: compiler-rt/trunk/test/asan/TestCases/Posix/init-order-dlopen.cc
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/init-order-dlopen.cc?rev=208778&r1=208777&r2=208778&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/test/asan/TestCases/Posix/init-order-dlopen.cc
> (original)
> +++ compiler-rt/trunk/test/asan/TestCases/Posix/init-order-dlopen.cc Wed
> May 14 09:16:09 2014
> @@ -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.
>
> Modified: compiler-rt/trunk/test/asan/TestCases/Posix/shared-lib-test.cc
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/shared-lib-test.cc?rev=208778&r1=208777&r2=208778&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/test/asan/TestCases/Posix/shared-lib-test.cc
> (original)
> +++ compiler-rt/trunk/test/asan/TestCases/Posix/shared-lib-test.cc Wed May
> 14 09:16:09 2014
> @@ -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 <dlfcn.h>
>
> Modified: compiler-rt/trunk/test/asan/TestCases/Posix/start-deactivated.cc
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/start-deactivated.cc?rev=208778&r1=208777&r2=208778&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/test/asan/TestCases/Posix/start-deactivated.cc
> (original)
> +++ compiler-rt/trunk/test/asan/TestCases/Posix/start-deactivated.cc Wed
> May 14 09:16:09 2014
> @@ -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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140514/b5965d75/attachment.html>


More information about the llvm-commits mailing list