[dfsan] Turn off all dfsan test cases on non x86_64 OSs
https://reviews.llvm.org/D101666 enables sanitizer allocator. This broke all test cases on non x86-64.
This commit is contained in:
parent
35ecfda01c
commit
79debe8d7b
|
|
@ -1,5 +1,7 @@
|
|||
// RUN: %clang_dfsan %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
// Tests that labels are propagated through loads and stores.
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
// RUN: DFSAN_OPTIONS=dump_labels_at_exit=/dev/stdout %run %t 2>&1 | FileCheck %s
|
||||
// RUN: DFSAN_OPTIONS=dump_labels_at_exit=/dev/stdout not %run %t c 2>&1 | FileCheck %s --check-prefix=CHECK-OOL
|
||||
// RUN: DFSAN_OPTIONS=dump_labels_at_exit=/dev/stdout not %run %t u 2>&1 | FileCheck %s --check-prefix=CHECK-OOL
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
// Tests that labels are properly dumped at program termination.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
// RUN: %clang_dfsan -fno-sanitize=dataflow -O2 -fPIE -DCALLBACKS -c %s -o %t-callbacks.o
|
||||
// RUN: %clang_dfsan -O2 -mllvm -dfsan-event-callbacks %s %t-callbacks.o -o %t
|
||||
// RUN: %run %t FooBarBaz 2>&1 | FileCheck %s
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
// Tests that callbacks are inserted for store events when
|
||||
// -dfsan-event-callbacks is specified.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
// RUN: %clang_dfsan %s -mllvm -dfsan-fast-16-labels -o %t
|
||||
// RUN: %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
//
|
||||
// Tests fast16labels mode.
|
||||
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
// RUN: %clang_dfsan %s -fsanitize-ignorelist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %clang_dfsan %s -fsanitize-ignorelist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && DFSAN_OPTIONS=warn_unimplemented=0 %run %t 2>&1 | count 0
|
||||
// RUN: %clang_dfsan %s -fsanitize-ignorelist=%S/Inputs/flags_abilist.txt -mllvm -dfsan-debug-nonzero-labels -o %t && DFSAN_OPTIONS=warn_nonzero_labels=1 %run %t 2>&1 | FileCheck --check-prefix=CHECK-NONZERO %s
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
// Tests that flags work correctly.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Tests dfsan_flush().
|
||||
// RUN: %clang_dfsan %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -DORIGIN_TRACKING -mllvm -dfsan-track-origins=1 -mllvm -dfsan-fast-16-labels=true %s -o %t && %run %t
|
||||
//
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
// RUN: %clang_dfsan %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && %run %t
|
||||
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
//
|
||||
// Tests that labels are propagated through function calls.
|
||||
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
// RUN: %clang_dfsan %s %t-calloc.o -o %t
|
||||
// RUN: %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
//
|
||||
// Tests that calling mmap() during during dfsan initialization works.
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi -c %s -o %t.o && \
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %t.o %t.lib.o -o %t.bin && \
|
||||
// RUN: %run %t.bin
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
#include <assert.h>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// RUN: %clangxx_dfsan %s -mllvm -dfsan-fast-16-labels -mllvm -dfsan-track-select-control-flow=false -mllvm -dfsan-combine-pointer-labels-on-load=false -O0 -DO0 -o %t && %run %t
|
||||
// RUN: %clangxx_dfsan %s -mllvm -dfsan-fast-16-labels -mllvm -dfsan-track-select-control-flow=false -mllvm -dfsan-combine-pointer-labels-on-load=false -O1 -o %t && %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// RUN: %clang_dfsan %s -o %t && %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
// Tests that labels are propagated through computation and that union labels
|
||||
// are properly created.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// DFSAN_OPTIONS=no_huge_pages_for_shadow=false RUN: %clang_dfsan %s -o %t && setarch `uname -m` -R %run %t
|
||||
// DFSAN_OPTIONS=no_huge_pages_for_shadow=true RUN: %clang_dfsan %s -o %t && setarch `uname -m` -R %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <assert.h>
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
// RUN: %clang_dfsan -DUSE_SIGNAL_ACTION -mllvm -dfsan-fast-16-labels=true %s -o %t && \
|
||||
// RUN: %run %t
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-fast-16-labels=true %s -o %t && %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
// RUN: %clang_dfsan %s -O1 -DO1 -o %t && %run %t
|
||||
// RUN: %clang_dfsan %s -O0 -mllvm -dfsan-fast-16-labels=true -DFAST16_O0 -o %t && %run %t
|
||||
// RUN: %clang_dfsan %s -O0 -DO0 -o %t && %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <assert.h>
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
// Tests that doing dfsan_flush() while another thread is executing doesn't
|
||||
// segfault.
|
||||
// RUN: %clang_dfsan %s -o %t && %run %t
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <assert.h>
|
||||
#include <pthread.h>
|
||||
#include <sanitizer/dfsan_interface.h>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
//
|
||||
// RUN: %clang_dfsan -fsanitize-coverage=trace-pc-guard,pc-table,func,trace-cmp %s -o %t
|
||||
// RUN: %run %t 2>&1 | FileCheck %s
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t
|
||||
// RUN: not %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %run %t foo
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// RUN: %clang_dfsan %s -o %t && %run %t | FileCheck %s
|
||||
// RUN: %clang_dfsan -mllvm -dfsan-args-abi %s -o %t && %run %t | FileCheck %s
|
||||
//
|
||||
// REQUIRES: x86_64-target-arch
|
||||
|
||||
// Tests that the custom implementation of write() does writes with or without
|
||||
// a callback set using dfsan_set_write_callback().
|
||||
|
|
|
|||
Loading…
Reference in New Issue