[compiler-rt] r187877 - Enable pipefail for ASan tests
Alexey Samsonov
samsonov at google.com
Wed Aug 7 02:14:31 PDT 2013
Author: samsonov
Date: Wed Aug 7 04:14:30 2013
New Revision: 187877
URL: http://llvm.org/viewvc/llvm-project?rev=187877&view=rev
Log:
Enable pipefail for ASan tests
Modified:
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/ptrace.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/syscalls.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow32.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow64.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/allow_user_segv.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/asan-symbolize-sanity-test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_tail_call.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_thread_stack.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/double-free.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-demangle.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-overflow.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/init-order-atexit.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/initialization-bug.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/invalid-free.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/ioctl.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/on_error_callback.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/partial_right.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/readv.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c
compiler-rt/trunk/lib/asan/lit_tests/TestCases/shared-lib-test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/sleep_before_dying.c
compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-oob-frames.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-overflow.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/strdup_oob_test.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/strip_path_prefix.c
compiler-rt/trunk/lib/asan/lit_tests/TestCases/symbolize_callback.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/time_interceptor.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-poison.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope.cc
compiler-rt/trunk/lib/asan/lit_tests/TestCases/wait.cc
compiler-rt/trunk/lib/asan/lit_tests/lit.cfg
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
// RUN: %clangxx_asan -fsanitize=use-after-return -O0 %s -o %t && \
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -fsanitize=use-after-return -O2 %s -o %t && \
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <string.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc Wed Aug 7 04:14:30 2013
@@ -4,10 +4,10 @@
// strict init-order checking).
// 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: ASAN_OPTIONS=check_initialization_order=true:strict_init_order=true not %t 2>&1 \
// 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: ASAN_OPTIONS=check_initialization_order=true:strict_init_order=true not %t 2>&1 \
// RUN: | FileCheck %s
// Do not test with optimization -- the error may be optimized away.
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc Wed Aug 7 04:14:30 2013
@@ -1,9 +1,9 @@
// ASan interceptor can be accessed with __interceptor_ prefix.
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/interception_test.cc Wed Aug 7 04:14:30 2013
@@ -1,9 +1,9 @@
// ASan interceptor can be accessed with __interceptor_ prefix.
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdlib.h>
#include <stdio.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc Wed Aug 7 04:14:30 2013
@@ -1,6 +1,6 @@
// RUN: %clangxx_asan -O2 %s -o %t
-// 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
+// RUN: ASAN_OPTIONS=fast_unwind_on_malloc=1 not %t 2>&1 | FileCheck %s --check-prefix=CHECK-FAST
+// RUN: ASAN_OPTIONS=fast_unwind_on_malloc=0 not %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).
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc Wed Aug 7 04:14:30 2013
@@ -2,7 +2,7 @@
// is set.
// RUN: %clangxx_asan -g %s -o %t 2>&1
-// RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=1 %t 2>&1 | FileCheck %s
+// RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=1 not %t 2>&1 | FileCheck %s
// No error here.
// RUN: ASAN_OPTIONS=alloc_dealloc_mismatch=0 %t
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc Wed Aug 7 04:14:30 2013
@@ -1,6 +1,6 @@
// RUN: %clangxx_asan -O2 %s -o %t
-// 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
+// RUN: ASAN_OPTIONS=fast_unwind_on_fatal=1 not %t 2>&1 | FileCheck %s --check-prefix=CHECK-FAST
+// RUN: ASAN_OPTIONS=fast_unwind_on_fatal=0 not %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).
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/ptrace.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/ptrace.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/ptrace.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/ptrace.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
// RUN: %clangxx_asan -O0 %s -o %t && %t
-// RUN: %clangxx_asan -DPOSITIVE -O0 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -DPOSITIVE -O0 %s -o %t && not %t 2>&1 | FileCheck %s
#include <assert.h>
#include <stdio.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
// Check that we properly report mmap failure.
-// RUN: %clangxx_asan %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdlib.h>
#include <assert.h>
#include <sys/time.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/syscalls.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/syscalls.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/syscalls.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/syscalls.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
-// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O3 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <assert.h>
#include <errno.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow32.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow32.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow32.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow32.cc Wed Aug 7 04:14:30 2013
@@ -1,9 +1,9 @@
// RUN: %clangxx_asan -O0 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O1 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O2 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
// Zero-base shadow only works on x86_64 and i386.
// REQUIRES: i386-supported-target, asan-32-bits
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow64.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow64.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow64.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow64.cc Wed Aug 7 04:14:30 2013
@@ -1,9 +1,9 @@
// RUN: %clangxx_asan -O0 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O1 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O2 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
// Zero-base shadow only works on x86_64 and i386.
// REQUIRES: x86_64-supported-target, asan-64-bits
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/allow_user_segv.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/allow_user_segv.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/allow_user_segv.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/allow_user_segv.cc Wed Aug 7 04:14:30 2013
@@ -1,8 +1,8 @@
// Regression test for
// https://code.google.com/p/address-sanitizer/issues/detail?id=180
-// RUN: %clangxx_asan -O0 %s -o %t && ASAN_OPTIONS=allow_user_segv_handler=true %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O2 %s -o %t && ASAN_OPTIONS=allow_user_segv_handler=true %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && ASAN_OPTIONS=allow_user_segv_handler=true not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && ASAN_OPTIONS=allow_user_segv_handler=true not %t 2>&1 | FileCheck %s
#include <signal.h>
#include <stdio.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/asan-symbolize-sanity-test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/asan-symbolize-sanity-test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/asan-symbolize-sanity-test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/asan-symbolize-sanity-test.cc Wed Aug 7 04:14:30 2013
@@ -3,7 +3,7 @@
// RUN: %clangxx_asan -O0 %p/SharedLibs/shared-lib-test-so.cc -fPIC -shared -o %t-so.so
// RUN: %clangxx_asan -O0 %s -o %t
-// RUN: ASAN_SYMBOLIZER_PATH= %t 2>&1 | %asan_symbolize | FileCheck %s
+// RUN: ASAN_SYMBOLIZER_PATH= not %t 2>&1 | %asan_symbolize | FileCheck %s
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc Wed Aug 7 04:14:30 2013
@@ -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 | FileCheck %s
+// RUN: ASAN_OPTIONS=malloc_context_size=120:redzone=512 not %t 2>&1 | FileCheck %s
#include <stdlib.h>
#include <stdio.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_tail_call.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_tail_call.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_tail_call.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_tail_call.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
// CHECK: AddressSanitizer: global-buffer-overflow
int global[10];
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_thread_stack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_thread_stack.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_thread_stack.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/deep_thread_stack.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <pthread.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/double-free.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/double-free.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/double-free.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/double-free.cc Wed Aug 7 04:14:30 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdlib.h>
#include <string.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-demangle.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-demangle.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-demangle.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-demangle.cc Wed Aug 7 04:14:30 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
namespace XXX {
class YYY {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-overflow.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-overflow.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-overflow.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/global-overflow.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <string.h>
int main(int argc, char **argv) {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
-// RUN: %clangxx_asan %s -o %t && %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O %s -o %t && not %t 2>&1 | FileCheck %s
// Check that we can find huge buffer overflows to the left.
#include <stdlib.h>
#include <string.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/init-order-atexit.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/init-order-atexit.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/init-order-atexit.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/init-order-atexit.cc Wed Aug 7 04:14:30 2013
@@ -5,7 +5,7 @@
// We do *not* want to report init-order bug in this case.
// RUN: %clangxx_asan -O0 %s %p/Helpers/init-order-atexit-extra.cc -o %t
-// RUN: ASAN_OPTIONS=check_initialization_order=true:strict_init_order=true %t 2>&1 | FileCheck %s
+// RUN: ASAN_OPTIONS=check_initialization_order=true:strict_init_order=true not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/initialization-bug.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/initialization-bug.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/initialization-bug.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/initialization-bug.cc Wed Aug 7 04:14:30 2013
@@ -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 | FileCheck %s
+// RUN: ASAN_OPTIONS=check_initialization_order=true not %t 2>&1 | FileCheck %s
// Do not test with optimization -- the error may be optimized away.
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/invalid-free.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/invalid-free.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/invalid-free.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/invalid-free.cc Wed Aug 7 04:14:30 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdlib.h>
#include <string.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/ioctl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/ioctl.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/ioctl.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/ioctl.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
-// 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 && ASAN_OPTIONS=handle_ioctl=1 not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 -g %s -o %t && ASAN_OPTIONS=handle_ioctl=1 not %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O0 -g %s -o %t && %t
// RUN: %clangxx_asan -O3 -g %s -o %t && %t
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && ASAN_OPTIONS=strict_memcmp=0 %t
+// RUN: %clangxx_asan -O0 %s -o %t && ASAN_OPTIONS=strict_memcmp=1 not %t 2>&1 | FileCheck %s
// Default to strict_memcmp=1.
-// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s --check-prefix=CHECK-strict
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <string.h>
@@ -10,7 +10,6 @@ int main() {
char kFubar[] = "fubar";
int res = memcmp(kFoo, kFubar, strlen(kFubar));
printf("res: %d\n", res);
- // CHECK-nonstrict: {{res: -1}}
- // CHECK-strict: AddressSanitizer: stack-buffer-overflow
+ // CHECK: AddressSanitizer: stack-buffer-overflow
return 0;
}
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/memcmp_test.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <string.h>
int main(int argc, char **argv) {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/on_error_callback.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/on_error_callback.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/on_error_callback.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/on_error_callback.cc Wed Aug 7 04:14:30 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/partial_right.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/partial_right.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/partial_right.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/partial_right.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdlib.h>
int main(int argc, char **argv) {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/readv.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/readv.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/readv.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/readv.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
// RUN: %clangxx_asan -O0 %s -o %t && %t
-// RUN: %clangxx_asan -O0 %s -DPOSITIVE -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -DPOSITIVE -o %t && not %t 2>&1 | FileCheck %s
// Test the readv() interceptor.
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c Wed Aug 7 04:14:30 2013
@@ -1,10 +1,10 @@
// Sanity checking a test in pure C.
// RUN: %clang_asan -O2 %s -o %t
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %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 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
#include <stdlib.h>
int main() {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/shared-lib-test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/shared-lib-test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/shared-lib-test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/shared-lib-test.cc Wed Aug 7 04:14:30 2013
@@ -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 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %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 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %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 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %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 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <dlfcn.h>
#include <stdio.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/sleep_before_dying.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/sleep_before_dying.c?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/sleep_before_dying.c (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/sleep_before_dying.c Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
// RUN: %clang_asan -O2 %s -o %t
-// RUN: ASAN_OPTIONS="sleep_before_dying=1" %t 2>&1 | FileCheck %s
+// RUN: ASAN_OPTIONS="sleep_before_dying=1" not %t 2>&1 | FileCheck %s
#include <stdlib.h>
int main() {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc Wed Aug 7 04:14:30 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
#include <string.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-oob-frames.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-oob-frames.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-oob-frames.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-oob-frames.cc Wed Aug 7 04:14:30 2013
@@ -1,8 +1,8 @@
// RUN: %clangxx_asan -O1 %s -o %t
-// 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
+// RUN: not %t 0 2>&1 | FileCheck %s --check-prefix=CHECK0
+// RUN: not %t 1 2>&1 | FileCheck %s --check-prefix=CHECK1
+// RUN: not %t 2 2>&1 | FileCheck %s --check-prefix=CHECK2
+// RUN: not %t 3 2>&1 | FileCheck %s --check-prefix=CHECK3
#define NOINLINE __attribute__((noinline))
inline void break_optimization(void *arg) {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-overflow.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-overflow.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-overflow.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/stack-overflow.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <string.h>
int main(int argc, char **argv) {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/strdup_oob_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/strdup_oob_test.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/strdup_oob_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/strdup_oob_test.cc Wed Aug 7 04:14:30 2013
@@ -1,7 +1,7 @@
-// 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
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <string.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/strip_path_prefix.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/strip_path_prefix.c?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/strip_path_prefix.c (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/strip_path_prefix.c Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
// RUN: %clang_asan -O2 %s -o %t
-// RUN: ASAN_OPTIONS="strip_path_prefix='/'" %t 2>&1 | FileCheck %s
+// RUN: ASAN_OPTIONS="strip_path_prefix='/'" not %t 2>&1 | FileCheck %s
#include <stdlib.h>
int main() {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/symbolize_callback.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/symbolize_callback.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/symbolize_callback.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/symbolize_callback.cc Wed Aug 7 04:14:30 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O2 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/time_interceptor.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/time_interceptor.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/time_interceptor.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/time_interceptor.cc Wed Aug 7 04:14:30 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
// Test the time() interceptor.
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=187877&r1=187876&r2=187877&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 Wed Aug 7 04:14:30 2013
@@ -1,15 +1,15 @@
// RUN: %clangxx_asan -O0 %s -o %t
-// 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: not %t A 2>&1 | FileCheck --check-prefix=CHECK-A %s
+// RUN: not %t B 2>&1 | FileCheck --check-prefix=CHECK-B %s
+// RUN: not %t C 2>&1 | FileCheck --check-prefix=CHECK-C %s
+// RUN: not %t D 2>&1 | FileCheck --check-prefix=CHECK-D %s
+// RUN: not %t E 2>&1 | FileCheck --check-prefix=CHECK-E %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
+// RUN: not %t K 2>&1 | FileCheck --check-prefix=CHECK-K %s
+// RUN: not %t L 2>&1 | FileCheck --check-prefix=CHECK-L %s
+// RUN: not %t M 2>&1 | FileCheck --check-prefix=CHECK-M %s
+// RUN: not %t N 2>&1 | FileCheck --check-prefix=CHECK-N %s
+// RUN: not %t O 2>&1 | FileCheck --check-prefix=CHECK-O %s
#include <sanitizer/asan_interface.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-poison.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-poison.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-poison.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-poison.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
// Check that __asan_poison_memory_region works.
-// RUN: %clangxx_asan -O0 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
//
// Check that we can disable it
// RUN: ASAN_OPTIONS=allow_user_poisoning=0 %t
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
// RUN: %clangxx_asan -O0 -fsanitize=use-after-scope %s -o %t && \
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
#include <stdio.h>
struct IntHolder {
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc Wed Aug 7 04:14:30 2013
@@ -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 | FileCheck %s
+// RUN: %clangxx_asan -O2 -fsanitize=use-after-scope %s -o %t && not %t 2>&1 | FileCheck %s
int *arr;
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/use-after-scope.cc Wed Aug 7 04:14:30 2013
@@ -1,5 +1,5 @@
// RUN: %clangxx_asan -O0 -fsanitize=use-after-scope %s -o %t && \
-// RUN: %t 2>&1 | FileCheck %s
+// RUN: not %t 2>&1 | FileCheck %s
int main() {
int *p = 0;
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/wait.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/wait.cc?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/wait.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/wait.cc Wed Aug 7 04:14:30 2013
@@ -1,23 +1,23 @@
-// 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 -DWAIT -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -DWAIT -O3 %s -o %t && not %t 2>&1 | 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 -DWAITPID -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -DWAITPID -O3 %s -o %t && not %t 2>&1 | 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 -DWAITID -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -DWAITID -O3 %s -o %t && not %t 2>&1 | 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 -DWAIT3 -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -DWAIT3 -O3 %s -o %t && not %t 2>&1 | 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 -DWAIT4 -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -DWAIT4 -O3 %s -o %t && not %t 2>&1 | 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 -DWAIT3_RUSAGE -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -DWAIT3_RUSAGE -O3 %s -o %t && not %t 2>&1 | 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
+// RUN: %clangxx_asan -DWAIT4_RUSAGE -O0 %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -DWAIT4_RUSAGE -O3 %s -o %t && not %t 2>&1 | FileCheck %s
#include <assert.h>
Modified: compiler-rt/trunk/lib/asan/lit_tests/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/lit.cfg?rev=187877&r1=187876&r2=187877&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/lit.cfg (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/lit.cfg Wed Aug 7 04:14:30 2013
@@ -84,7 +84,6 @@ config.available_features.add("asan-" +
# Default test suffixes.
config.suffixes = ['.c', '.cc', '.cpp']
-config.pipefail = False
# AddressSanitizer tests are currently supported on Linux and Darwin only.
if config.host_os not in ['Linux', 'Darwin']:
More information about the llvm-commits
mailing list