[compiler-rt] r183977 - Properly install LSan interface header, rely on sanitizer header presence in lit tests

Alexey Samsonov samsonov at google.com
Fri Jun 14 04:45:36 PDT 2013


Author: samsonov
Date: Fri Jun 14 06:45:36 2013
New Revision: 183977

URL: http://llvm.org/viewvc/llvm-project?rev=183977&view=rev
Log:
Properly install LSan interface header, rely on sanitizer header presence in lit tests

Modified:
    compiler-rt/trunk/include/CMakeLists.txt
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/interface_test.cc
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc
    compiler-rt/trunk/lib/lsan/lit_tests/TestCases/disabler.cc
    compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object.cc
    compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object_errors.cc

Modified: compiler-rt/trunk/include/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/CMakeLists.txt?rev=183977&r1=183976&r2=183977&view=diff
==============================================================================
--- compiler-rt/trunk/include/CMakeLists.txt (original)
+++ compiler-rt/trunk/include/CMakeLists.txt Fri Jun 14 06:45:36 2013
@@ -2,6 +2,7 @@ set(SANITIZER_HEADERS
   sanitizer/asan_interface.h
   sanitizer/common_interface_defs.h
   sanitizer/linux_syscall_hooks.h
+  sanitizer/lsan_interface.h
   sanitizer/msan_interface.h)
 
 set(output_dir ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/include)

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/interface_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/interface_test.cc?rev=183977&r1=183976&r2=183977&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/interface_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/interface_test.cc Fri Jun 14 06:45:36 2013
@@ -1,6 +1,6 @@
 // Check that user may include ASan interface header.
-// RUN: %clang_asan -I %p/../../../include %s -o %t && %t
-// RUN: %clang -I %p/../../../include %s -o %t && %t
+// RUN: %clang_asan %s -o %t && %t
+// RUN: %clang %s -o %t && %t
 #include <sanitizer/asan_interface.h>
 
 int main() {

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc?rev=183977&r1=183976&r2=183977&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc Fri Jun 14 06:45:36 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 -I %p/../../../include %s -o %t
+// RUN: %clangxx_asan -O0 %s -o %t
 // RUN: %t A 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-A %s
 // RUN: %t B 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-B %s
 // RUN: %t C 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-C %s

Modified: compiler-rt/trunk/lib/lsan/lit_tests/TestCases/disabler.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lit_tests/TestCases/disabler.cc?rev=183977&r1=183976&r2=183977&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lit_tests/TestCases/disabler.cc (original)
+++ compiler-rt/trunk/lib/lsan/lit_tests/TestCases/disabler.cc Fri Jun 14 06:45:36 2013
@@ -1,6 +1,6 @@
 // Test for ScopedDisabler.
 // RUN: LSAN_BASE="report_objects=1:use_registers=0:use_stacks=0:use_globals=0:use_tls=0"
-// RUN: %clangxx_lsan -I %p/../../../../include %s -o %t
+// RUN: %clangxx_lsan %s -o %t
 // RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
 
 #include <stdio.h>

Modified: compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object.cc?rev=183977&r1=183976&r2=183977&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object.cc (original)
+++ compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object.cc Fri Jun 14 06:45:36 2013
@@ -1,6 +1,6 @@
 // Test for __lsan_ignore_object().
 // RUN: LSAN_BASE="report_objects=1:use_registers=0:use_stacks=0:use_globals=0:use_tls=0:verbosity=2"
-// RUN: %clangxx_lsan -I %p/../../../../include %s -o %t
+// RUN: %clangxx_lsan %s -o %t
 // RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
 
 #include <stdio.h>

Modified: compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object_errors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object_errors.cc?rev=183977&r1=183976&r2=183977&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object_errors.cc (original)
+++ compiler-rt/trunk/lib/lsan/lit_tests/TestCases/ignore_object_errors.cc Fri Jun 14 06:45:36 2013
@@ -1,6 +1,6 @@
 // Test for incorrect use of __lsan_ignore_object().
 // RUN: LSAN_BASE="verbosity=1"
-// RUN: %clangxx_lsan -I %p/../../../../include %s -o %t
+// RUN: %clangxx_lsan %s -o %t
 // RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
 
 #include <stdio.h>





More information about the llvm-commits mailing list