[compiler-rt] r219343 - Mark sanitizer tests XFAIL on ARMv7

Renato Golin renato.golin at linaro.org
Wed Oct 8 14:13:24 PDT 2014


Author: rengolin
Date: Wed Oct  8 16:13:23 2014
New Revision: 219343

URL: http://llvm.org/viewvc/llvm-project?rev=219343&view=rev
Log:
Mark sanitizer tests XFAIL on ARMv7

ASAN, UBSAN and profile tests that don't work with arm-linux-gnueabi and
android also don't work on armv7l-linux-gnueabihf. Some of the tests have
known causes, others not yet. In order to get a green bot, I'm disabling
those tests for now and will investigate when the priority rises.

Modified:
    compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc
    compiler-rt/trunk/test/asan/TestCases/Linux/heavy_uar_test.cc
    compiler-rt/trunk/test/asan/TestCases/Linux/malloc_delete_mismatch.cc
    compiler-rt/trunk/test/asan/TestCases/Linux/new_array_cookie_with_new_from_class.cc
    compiler-rt/trunk/test/asan/TestCases/Linux/ptrace.cc
    compiler-rt/trunk/test/asan/TestCases/Linux/stack-trace-dlclose.cc
    compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-sanity-test.cc
    compiler-rt/trunk/test/asan/TestCases/Posix/start-deactivated.cc
    compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/double-free.cc
    compiler-rt/trunk/test/asan/TestCases/gc-test.cc
    compiler-rt/trunk/test/asan/TestCases/invalid-free.cc
    compiler-rt/trunk/test/asan/TestCases/large_func_test.cc
    compiler-rt/trunk/test/asan/TestCases/sanity_check_pure_c.c
    compiler-rt/trunk/test/asan/TestCases/strncpy-overflow.cc
    compiler-rt/trunk/test/asan/TestCases/use-after-delete.cc
    compiler-rt/trunk/test/asan/TestCases/use-after-free-right.cc
    compiler-rt/trunk/test/asan/TestCases/use-after-free.cc
    compiler-rt/trunk/test/asan/TestCases/zero_page_pc.cc
    compiler-rt/trunk/test/profile/lit.cfg
    compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/ptrace.cc
    compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp
    compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/misaligned.cpp

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc Wed Oct  8 16:13:23 2014
@@ -4,6 +4,7 @@
 // RUN: %clangxx_asan -O3 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
 
 // REQUIRES: arm-supported-target
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <stdlib.h>
 

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/heavy_uar_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/heavy_uar_test.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/heavy_uar_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/heavy_uar_test.cc Wed Oct  8 16:13:23 2014
@@ -7,6 +7,7 @@
 
 // FIXME: Fix this test under GCC.
 // REQUIRES: Clang
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <stdio.h>
 #include <string.h>

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/malloc_delete_mismatch.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/malloc_delete_mismatch.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/malloc_delete_mismatch.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/malloc_delete_mismatch.cc Wed Oct  8 16:13:23 2014
@@ -13,6 +13,7 @@
 // RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=1:malloc_context_size=0:fast_unwind_on_malloc=0 not %run %t 2>&1 | FileCheck %s
 // RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=1:malloc_context_size=0:fast_unwind_on_malloc=1 not %run %t 2>&1 | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 #include <stdlib.h>
 
 static volatile char *x;

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/new_array_cookie_with_new_from_class.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/new_array_cookie_with_new_from_class.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/new_array_cookie_with_new_from_class.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/new_array_cookie_with_new_from_class.cc Wed Oct  8 16:13:23 2014
@@ -3,6 +3,7 @@
 // RUN: %clangxx_asan  %s -o %t && %run %t
 //
 // XFAIL: android
+// XFAIL: armv7l-unknown-linux-gnueabihf
 #include <new>
 #include <stdlib.h>
 #include <stdint.h>

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/ptrace.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/ptrace.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/ptrace.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/ptrace.cc Wed Oct  8 16:13:23 2014
@@ -4,6 +4,7 @@
 // RUN: %clangxx_asan -O0 %s -o %t && %run %t
 // RUN: %clangxx_asan -DPOSITIVE -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <assert.h>
 #include <stdio.h>

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/stack-trace-dlclose.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/stack-trace-dlclose.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/stack-trace-dlclose.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/stack-trace-dlclose.cc Wed Oct  8 16:13:23 2014
@@ -5,6 +5,7 @@
 // RUN: %clangxx_asan -DSO_DIR=\"%T\" %s -o %t
 // RUN: ASAN_OPTIONS=exitcode=0 %run %t 2>&1 | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <assert.h>
 #include <dlfcn.h>

Modified: compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-sanity-test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-sanity-test.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-sanity-test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-sanity-test.cc Wed Oct  8 16:13:23 2014
@@ -8,6 +8,7 @@
 // RUN: %clangxx_asan -O0 %s -o %t
 // RUN: env ASAN_OPTIONS=symbolize=0 not %run %t 2>&1 | %asan_symbolize | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #if !defined(SHARED_LIB)
 #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=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/start-deactivated.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/start-deactivated.cc Wed Oct  8 16:13:23 2014
@@ -7,6 +7,7 @@
 // RUN: %clangxx_asan -O0 %t.o -o %t
 // RUN: ASAN_OPTIONS=start_deactivated=1 not %run %t 2>&1 | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #if !defined(SHARED_LIB)
 #include <dlfcn.h>

Modified: compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc Wed Oct  8 16:13:23 2014
@@ -3,6 +3,7 @@
 // RUN: %clangxx_asan -O0 %s -o %t 2>&1
 // RUN: env ASAN_OPTIONS=malloc_context_size=120:redzone=512 not %run %t 2>&1 | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 #include <stdlib.h>
 #include <stdio.h>
 

Modified: compiler-rt/trunk/test/asan/TestCases/double-free.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/double-free.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/double-free.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/double-free.cc Wed Oct  8 16:13:23 2014
@@ -5,6 +5,7 @@
 // RUN: env ASAN_OPTIONS=malloc_context_size=0:fast_unwind_on_malloc=0 not %run %t 2>&1 | FileCheck %s
 // RUN: env ASAN_OPTIONS=malloc_context_size=0:fast_unwind_on_malloc=1 not %run %t 2>&1 | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <stdlib.h>
 #include <string.h>

Modified: compiler-rt/trunk/test/asan/TestCases/gc-test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/gc-test.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/gc-test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/gc-test.cc Wed Oct  8 16:13:23 2014
@@ -2,6 +2,7 @@
 // RUN: env ASAN_OPTIONS=detect_stack_use_after_return=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK1
 // RUN: env ASAN_OPTIONS=detect_stack_use_after_return=0 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK0
 // REQUIRES: stable-runtime
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <assert.h>
 #include <stdio.h>

Modified: compiler-rt/trunk/test/asan/TestCases/invalid-free.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/invalid-free.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/invalid-free.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/invalid-free.cc Wed Oct  8 16:13:23 2014
@@ -5,6 +5,7 @@
 // RUN: env ASAN_OPTIONS=malloc_context_size=0:fast_unwind_on_malloc=0 not %run %t 2>&1 | FileCheck %s
 // RUN: env ASAN_OPTIONS=malloc_context_size=0:fast_unwind_on_malloc=1 not %run %t 2>&1 | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <stdlib.h>
 #include <string.h>

Modified: compiler-rt/trunk/test/asan/TestCases/large_func_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/large_func_test.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/large_func_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/large_func_test.cc Wed Oct  8 16:13:23 2014
@@ -3,6 +3,7 @@
 // RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
 // RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <stdlib.h>
 __attribute__((noinline))

Modified: compiler-rt/trunk/test/asan/TestCases/sanity_check_pure_c.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/sanity_check_pure_c.c?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/sanity_check_pure_c.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/sanity_check_pure_c.c Wed Oct  8 16:13:23 2014
@@ -6,6 +6,7 @@
 // RUN: %clang_asan -O2 %s -pie -fPIE -o %t
 // RUN: not %run %t 2>&1 | FileCheck %s
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <stdlib.h>
 int main() {

Modified: compiler-rt/trunk/test/asan/TestCases/strncpy-overflow.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/strncpy-overflow.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/strncpy-overflow.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/strncpy-overflow.cc Wed Oct  8 16:13:23 2014
@@ -5,6 +5,7 @@
 
 // REQUIRES: compiler-rt-optimized
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <string.h>
 #include <stdlib.h>

Modified: compiler-rt/trunk/test/asan/TestCases/use-after-delete.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-delete.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-delete.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-delete.cc Wed Oct  8 16:13:23 2014
@@ -3,6 +3,7 @@
 // RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
 // RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <stdlib.h>
 int main() {

Modified: compiler-rt/trunk/test/asan/TestCases/use-after-free-right.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-free-right.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-free-right.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-free-right.cc Wed Oct  8 16:13:23 2014
@@ -3,6 +3,7 @@
 // RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
 // RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 // Test use-after-free report in the case when access is at the right border of
 // the allocation.

Modified: compiler-rt/trunk/test/asan/TestCases/use-after-free.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/use-after-free.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-free.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/use-after-free.cc Wed Oct  8 16:13:23 2014
@@ -3,6 +3,7 @@
 // RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
 // RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <stdlib.h>
 int main() {

Modified: compiler-rt/trunk/test/asan/TestCases/zero_page_pc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/zero_page_pc.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/zero_page_pc.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/zero_page_pc.cc Wed Oct  8 16:13:23 2014
@@ -3,6 +3,7 @@
 
 // https://code.google.com/p/address-sanitizer/issues/detail?id=336
 // XFAIL: android
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 typedef void void_f();
 int main() {

Modified: compiler-rt/trunk/test/profile/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/lit.cfg?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/lit.cfg (original)
+++ compiler-rt/trunk/test/profile/lit.cfg Wed Oct  8 16:13:23 2014
@@ -48,3 +48,6 @@ config.substitutions.append( ("%clang_pr
 
 if config.host_os not in ['Darwin', 'FreeBSD', 'Linux']:
   config.unsupported = True
+
+if config.target_arch in ['armv7l']:
+  config.unsupported = True

Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/ptrace.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/ptrace.cc?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/ptrace.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/ptrace.cc Wed Oct  8 16:13:23 2014
@@ -1,5 +1,6 @@
 // RUN: %clangxx -O0 %s -o %t && %run %t
 // XFAIL: arm-linux-gnueabi
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <assert.h>
 #include <signal.h>

Modified: compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp Wed Oct  8 16:13:23 2014
@@ -13,6 +13,7 @@
 // RUN: not %run %t 9 2>&1 | FileCheck %s --check-prefix=CHECK-9
 
 // This test assumes float and double are IEEE-754 single- and double-precision.
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #if defined(__APPLE__)
 # include <machine/endian.h>

Modified: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/misaligned.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/misaligned.cpp?rev=219343&r1=219342&r2=219343&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/misaligned.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/misaligned.cpp Wed Oct  8 16:13:23 2014
@@ -10,6 +10,7 @@
 
 // RUN: %clangxx -fsanitize=alignment -fno-sanitize-recover %s -O3 -o %t
 // RUN: not %run %t w1 2>&1 | FileCheck %s --check-prefix=CHECK-WILD
+// XFAIL: armv7l-unknown-linux-gnueabihf
 
 #include <new>
 





More information about the llvm-commits mailing list