forked from OSchip/llvm-project
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. llvm-svn: 219343
This commit is contained in:
parent
1e845f269b
commit
1aaa4bcdd1
|
@ -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>
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
// FIXME: Fix this test under GCC.
|
||||
// REQUIRES: Clang
|
||||
// XFAIL: armv7l-unknown-linux-gnueabihf
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
// REQUIRES: compiler-rt-optimized
|
||||
// XFAIL: arm-linux-gnueabi
|
||||
// XFAIL: armv7l-unknown-linux-gnueabihf
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -48,3 +48,6 @@ config.substitutions.append( ("%clang_profuse=", build_invocation(clang_cflags)
|
|||
|
||||
if config.host_os not in ['Darwin', 'FreeBSD', 'Linux']:
|
||||
config.unsupported = True
|
||||
|
||||
if config.target_arch in ['armv7l']:
|
||||
config.unsupported = True
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue