[ASan] Remove %symbolize from lit tests: we now use external symbolizer instead of python script
llvm-svn: 185163
This commit is contained in:
parent
c026e8bc8e
commit
13f89cd19b
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -fsanitize=use-after-return -O0 %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -fsanitize=use-after-return -O2 %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
// RUN: %clangxx_asan -O0 %s %p/../Helpers/initialization-bug-extra.cc -o %t
|
||||
// RUN: ASAN_OPTIONS=check_initialization_order=true:strict_init_order=true %t 2>&1 \
|
||||
// RUN: | %symbolize | FileCheck %s
|
||||
// RUN: | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %p/../Helpers/initialization-bug-extra.cc %s -o %t
|
||||
// RUN: ASAN_OPTIONS=check_initialization_order=true:strict_init_order=true %t 2>&1 \
|
||||
// RUN: | %symbolize | FileCheck %s
|
||||
// RUN: | FileCheck %s
|
||||
|
||||
// Do not test with optimization -- the error may be optimized away.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clangxx_asan -O2 %s -o %t
|
||||
// RUN: ASAN_OPTIONS=fast_unwind_on_malloc=1 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-FAST
|
||||
// RUN: ASAN_OPTIONS=fast_unwind_on_malloc=0 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-SLOW
|
||||
// RUN: ASAN_OPTIONS=fast_unwind_on_malloc=1 %t 2>&1 | FileCheck %s --check-prefix=CHECK-FAST
|
||||
// RUN: ASAN_OPTIONS=fast_unwind_on_malloc=0 %t 2>&1 | FileCheck %s --check-prefix=CHECK-SLOW
|
||||
|
||||
// Test how well we unwind in presence of qsort in the stack
|
||||
// (i.e. if we can unwind through a function compiled w/o frame pointers).
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
// is set.
|
||||
|
||||
// RUN: %clangxx_asan -g %s -o %t 2>&1
|
||||
// RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=1 %t 2>&1 | \
|
||||
// RUN: %symbolize | FileCheck %s
|
||||
// RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=1 %t 2>&1 | FileCheck %s
|
||||
|
||||
// No error here.
|
||||
// RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=0 %t
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clangxx_asan -O2 %s -o %t
|
||||
// RUN: ASAN_OPTIONS=fast_unwind_on_fatal=1 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-FAST
|
||||
// RUN: ASAN_OPTIONS=fast_unwind_on_fatal=0 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-SLOW
|
||||
// RUN: ASAN_OPTIONS=fast_unwind_on_fatal=1 %t 2>&1 | FileCheck %s --check-prefix=CHECK-FAST
|
||||
// RUN: ASAN_OPTIONS=fast_unwind_on_fatal=0 %t 2>&1 | FileCheck %s --check-prefix=CHECK-SLOW
|
||||
|
||||
// Test how well we unwind in presence of qsort in the stack
|
||||
// (i.e. if we can unwind through a function compiled w/o frame pointers).
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t
|
||||
// RUN: %clangxx_asan -DPOSITIVE -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DPOSITIVE -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx_asan -O0 %s -fsanitize-address-zero-base-shadow -pie -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -fsanitize-address-zero-base-shadow -pie -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// Zero-base shadow only works on x86_64 and i386.
|
||||
// REQUIRES: x86_64-supported-target
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: %clangxx_asan -O0 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
|
||||
// Zero-base shadow only works on x86_64 and i386.
|
||||
// REQUIRES: i386-supported-target, asan-32-bits
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: %clangxx_asan -O0 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
|
||||
// Zero-base shadow only works on x86_64 and i386.
|
||||
// REQUIRES: x86_64-supported-target, asan-64-bits
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Check that we can store lots of stack frames if asked to.
|
||||
|
||||
// RUN: %clangxx_asan -O0 %s -o %t 2>&1
|
||||
// RUN: ASAN_OPTIONS=malloc_context_size=120:redzone=512 %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: ASAN_OPTIONS=malloc_context_size=120:redzone=512 %t 2>&1 | FileCheck %s
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// CHECK: AddressSanitizer: global-buffer-overflow
|
||||
int global[10];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// Don't run through %symbolize to avoid c++filt demangling.
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
namespace XXX {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <string.h>
|
||||
int main(int argc, char **argv) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Test to make sure basic initialization order errors are caught.
|
||||
|
||||
// RUN: %clangxx_asan -O0 %s %p/Helpers/initialization-bug-extra2.cc -o %t
|
||||
// RUN: ASAN_OPTIONS=check_initialization_order=true %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: ASAN_OPTIONS=check_initialization_order=true %t 2>&1 | FileCheck %s
|
||||
|
||||
// Do not test with optimization -- the error may be optimized away.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clangxx_asan -O0 -g %s -o %t && ASAN_OPTIONS=handle_ioctl=1 %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 -g %s -o %t && ASAN_OPTIONS=handle_ioctl=1 %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 -g %s -o %t && ASAN_OPTIONS=handle_ioctl=1 %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 -g %s -o %t && ASAN_OPTIONS=handle_ioctl=1 %t 2>&1 | FileCheck %s
|
||||
|
||||
// RUN: %clangxx_asan -O0 -g %s -o %t && %t
|
||||
// RUN: %clangxx_asan -O3 -g %s -o %t && %t
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && ASAN_OPTIONS=strict_memcmp=0 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-nonstrict
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && ASAN_OPTIONS=strict_memcmp=1 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-strict
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && ASAN_OPTIONS=strict_memcmp=0 %t 2>&1 | FileCheck %s --check-prefix=CHECK-nonstrict
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && ASAN_OPTIONS=strict_memcmp=1 %t 2>&1 | FileCheck %s --check-prefix=CHECK-strict
|
||||
// Default to strict_memcmp=1.
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-strict
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s --check-prefix=CHECK-strict
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <string.h>
|
||||
int main(int argc, char **argv) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
|
||||
__attribute__((noinline))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <stdlib.h>
|
||||
int main(int argc, char **argv) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t
|
||||
// RUN: %clangxx_asan -O0 %s -DPOSITIVE -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -DPOSITIVE -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// Test the readv() interceptor.
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// Sanity checking a test in pure C.
|
||||
// RUN: %clang_asan -O2 %s -o %t
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
|
||||
// Sanity checking a test in pure C with -pie.
|
||||
// RUN: %clang_asan -O2 %s -pie -o %t
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <stdlib.h>
|
||||
int main() {
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// RUN: %clangxx_asan -O0 %p/SharedLibs/shared-lib-test-so.cc \
|
||||
// RUN: -fPIC -shared -o %t-so.so
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %p/SharedLibs/shared-lib-test-so.cc \
|
||||
// RUN: -fPIC -shared -o %t-so.so
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %p/SharedLibs/shared-lib-test-so.cc \
|
||||
// RUN: -fPIC -shared -o %t-so.so
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %p/SharedLibs/shared-lib-test-so.cc \
|
||||
// RUN: -fPIC -shared -o %t-so.so
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: %clangxx_asan -O1 %s -o %t
|
||||
// RUN: %t 0 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK0
|
||||
// RUN: %t 1 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK1
|
||||
// RUN: %t 2 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK2
|
||||
// RUN: %t 3 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK3
|
||||
// RUN: %t 0 2>&1 | FileCheck %s --check-prefix=CHECK0
|
||||
// RUN: %t 1 2>&1 | FileCheck %s --check-prefix=CHECK1
|
||||
// RUN: %t 2 2>&1 | FileCheck %s --check-prefix=CHECK2
|
||||
// RUN: %t 3 2>&1 | FileCheck %s --check-prefix=CHECK3
|
||||
|
||||
#define NOINLINE __attribute__((noinline))
|
||||
inline void break_optimization(void *arg) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <string.h>
|
||||
int main(int argc, char **argv) {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// XFAIL: *
|
||||
// RUN: %clangxx_asan -fsanitize=use-after-return -O0 %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -fsanitize=use-after-return -O1 %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -fsanitize=use-after-return -O2 %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -fsanitize=use-after-return -O3 %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// Test the time() interceptor.
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// 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
|
||||
// RUN: %t D 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-D %s
|
||||
// RUN: %t E 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-E %s
|
||||
// RUN: %t A 2>&1 | FileCheck --check-prefix=CHECK-A %s
|
||||
// RUN: %t B 2>&1 | FileCheck --check-prefix=CHECK-B %s
|
||||
// RUN: %t C 2>&1 | FileCheck --check-prefix=CHECK-C %s
|
||||
// RUN: %t D 2>&1 | FileCheck --check-prefix=CHECK-D %s
|
||||
// RUN: %t E 2>&1 | FileCheck --check-prefix=CHECK-E %s
|
||||
|
||||
// RUN: %t K 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-K %s
|
||||
// RUN: %t L 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-L %s
|
||||
// RUN: %t M 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-M %s
|
||||
// RUN: %t N 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-N %s
|
||||
// RUN: %t O 2>&1 | %symbolize | FileCheck --check-prefix=CHECK-O %s
|
||||
// RUN: %t K 2>&1 | FileCheck --check-prefix=CHECK-K %s
|
||||
// RUN: %t L 2>&1 | FileCheck --check-prefix=CHECK-L %s
|
||||
// RUN: %t M 2>&1 | FileCheck --check-prefix=CHECK-M %s
|
||||
// RUN: %t N 2>&1 | FileCheck --check-prefix=CHECK-N %s
|
||||
// RUN: %t O 2>&1 | FileCheck --check-prefix=CHECK-O %s
|
||||
|
||||
#include <sanitizer/asan_interface.h>
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
|
||||
// Test use-after-free report in the case when access is at the right border of
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | %symbolize > %t.out
|
||||
// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>%t.out
|
||||
// RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-%os < %t.out
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Check that __asan_poison_memory_region works.
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
//
|
||||
// Check that we can disable it
|
||||
// RUN: ASAN_OPTIONS=allow_user_poisoning=0 %t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clangxx_asan -O0 -fsanitize=use-after-scope %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
#include <stdio.h>
|
||||
|
||||
struct IntHolder {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// happens. "always_inline" is not enough, as Clang doesn't emit
|
||||
// llvm.lifetime intrinsics at -O0.
|
||||
//
|
||||
// RUN: %clangxx_asan -O2 -fsanitize=use-after-scope %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -O2 -fsanitize=use-after-scope %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
int *arr;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clangxx_asan -O0 -fsanitize=use-after-scope %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
//
|
||||
// Lifetime for temporaries is not emitted yet.
|
||||
// XFAIL: *
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clangxx_asan -O0 -fsanitize=use-after-scope %s -o %t && \
|
||||
// RUN: %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %t 2>&1 | FileCheck %s
|
||||
|
||||
int main() {
|
||||
int *p = 0;
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
// RUN: %clangxx_asan -DWAIT -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// RUN: %clangxx_asan -DWAITPID -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAITPID -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAITPID -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAITPID -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// RUN: %clangxx_asan -DWAITID -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAITID -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAITID -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAITID -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// RUN: %clangxx_asan -DWAIT3 -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT3 -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT3 -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT3 -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// RUN: %clangxx_asan -DWAIT4 -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT4 -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT4 -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT4 -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// RUN: %clangxx_asan -DWAIT3_RUSAGE -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT3_RUSAGE -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT3_RUSAGE -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT3_RUSAGE -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
// RUN: %clangxx_asan -DWAIT4_RUSAGE -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT4_RUSAGE -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT4_RUSAGE -O0 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -DWAIT4_RUSAGE -O3 %s -o %t && %t 2>&1 | FileCheck %s
|
||||
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
@ -72,10 +72,6 @@ if llvm_tools_dir:
|
|||
config.environment['ASAN_SYMBOLIZER_PATH'] = os.path.join(
|
||||
llvm_tools_dir, "llvm-symbolizer")
|
||||
|
||||
# Define %symbolize substitution that filters output through
|
||||
# c++filt (for demangling, somewhy it doesn't work for symbolizer on Mac).
|
||||
config.substitutions.append( ("%symbolize ", " c++filt "))
|
||||
|
||||
# Define CHECK-%os to check for OS-dependent output.
|
||||
config.substitutions.append( ('CHECK-%os', ("CHECK-" + config.host_os)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue