diff options
Diffstat (limited to 'compiler-rt')
65 files changed, 64 insertions, 66 deletions
| diff --git a/compiler-rt/lib/tsan/lit_tests/atomic_free.cc b/compiler-rt/lib/tsan/lit_tests/atomic_free.cc index ba9bd5ac4ae..87d559362af 100644 --- a/compiler-rt/lib/tsan/lit_tests/atomic_free.cc +++ b/compiler-rt/lib/tsan/lit_tests/atomic_free.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/atomic_free2.cc b/compiler-rt/lib/tsan/lit_tests/atomic_free2.cc index 5517bf7ce90..961ff38c843 100644 --- a/compiler-rt/lib/tsan/lit_tests/atomic_free2.cc +++ b/compiler-rt/lib/tsan/lit_tests/atomic_free2.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/atomic_race.cc b/compiler-rt/lib/tsan/lit_tests/atomic_race.cc index 360b8123888..0dfe4d93df6 100644 --- a/compiler-rt/lib/tsan/lit_tests/atomic_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/atomic_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/atomic_stack.cc b/compiler-rt/lib/tsan/lit_tests/atomic_stack.cc index 50f6a8a889c..841f74b891a 100644 --- a/compiler-rt/lib/tsan/lit_tests/atomic_stack.cc +++ b/compiler-rt/lib/tsan/lit_tests/atomic_stack.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/fd_location.cc b/compiler-rt/lib/tsan/lit_tests/fd_location.cc index 35f9aabb037..2b1e9c56e36 100644 --- a/compiler-rt/lib/tsan/lit_tests/fd_location.cc +++ b/compiler-rt/lib/tsan/lit_tests/fd_location.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/fd_pipe_race.cc b/compiler-rt/lib/tsan/lit_tests/fd_pipe_race.cc index dfdb7795aae..4dd2b77861a 100644 --- a/compiler-rt/lib/tsan/lit_tests/fd_pipe_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/fd_pipe_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/fd_stdout_race.cc b/compiler-rt/lib/tsan/lit_tests/fd_stdout_race.cc index 6581fc503a1..4b512bb7887 100644 --- a/compiler-rt/lib/tsan/lit_tests/fd_stdout_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/fd_stdout_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/free_race.c b/compiler-rt/lib/tsan/lit_tests/free_race.c index ff71a4d2116..a49572cfe8b 100644 --- a/compiler-rt/lib/tsan/lit_tests/free_race.c +++ b/compiler-rt/lib/tsan/lit_tests/free_race.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdlib.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/free_race2.c b/compiler-rt/lib/tsan/lit_tests/free_race2.c index f20774b2d8d..2b9a41927a4 100644 --- a/compiler-rt/lib/tsan/lit_tests/free_race2.c +++ b/compiler-rt/lib/tsan/lit_tests/free_race2.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <stdlib.h>  void __attribute__((noinline)) foo(int *mem) { diff --git a/compiler-rt/lib/tsan/lit_tests/global_race.cc b/compiler-rt/lib/tsan/lit_tests/global_race.cc index 0892d07da2c..997f0503dee 100644 --- a/compiler-rt/lib/tsan/lit_tests/global_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/global_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stddef.h> diff --git a/compiler-rt/lib/tsan/lit_tests/heap_race.cc b/compiler-rt/lib/tsan/lit_tests/heap_race.cc index 297f8dbdec7..cc2c1fee532 100644 --- a/compiler-rt/lib/tsan/lit_tests/heap_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/heap_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stddef.h> diff --git a/compiler-rt/lib/tsan/lit_tests/inlined_memcpy_race.cc b/compiler-rt/lib/tsan/lit_tests/inlined_memcpy_race.cc index 6efe5a956e9..5dda36e4b9e 100644 --- a/compiler-rt/lib/tsan/lit_tests/inlined_memcpy_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/inlined_memcpy_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/java_lock_rec_race.cc b/compiler-rt/lib/tsan/lit_tests/java_lock_rec_race.cc index 61626aaddc0..a868e260c86 100644 --- a/compiler-rt/lib/tsan/lit_tests/java_lock_rec_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/java_lock_rec_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include "java.h"  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/java_race.cc b/compiler-rt/lib/tsan/lit_tests/java_race.cc index 722bb6e8d09..4841a7db0a9 100644 --- a/compiler-rt/lib/tsan/lit_tests/java_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/java_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include "java.h"  void *Thread(void *p) { diff --git a/compiler-rt/lib/tsan/lit_tests/java_race_move.cc b/compiler-rt/lib/tsan/lit_tests/java_race_move.cc index bb63ea985c5..6da8a106483 100644 --- a/compiler-rt/lib/tsan/lit_tests/java_race_move.cc +++ b/compiler-rt/lib/tsan/lit_tests/java_race_move.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include "java.h"  jptr varaddr; diff --git a/compiler-rt/lib/tsan/lit_tests/lit.cfg b/compiler-rt/lib/tsan/lit_tests/lit.cfg index ec4965d4ffb..ce6c23a84a8 100644 --- a/compiler-rt/lib/tsan/lit_tests/lit.cfg +++ b/compiler-rt/lib/tsan/lit_tests/lit.cfg @@ -77,5 +77,3 @@ config.suffixes = ['.c', '.cc', '.cpp']  # ThreadSanitizer tests are currently supported on Linux only.  if config.host_os not in ['Linux']:    config.unsupported = True - -config.pipefail = False diff --git a/compiler-rt/lib/tsan/lit_tests/load_shared_lib.cc b/compiler-rt/lib/tsan/lit_tests/load_shared_lib.cc index dd6fa0964f4..d60cd5700a8 100644 --- a/compiler-rt/lib/tsan/lit_tests/load_shared_lib.cc +++ b/compiler-rt/lib/tsan/lit_tests/load_shared_lib.cc @@ -4,7 +4,7 @@  // RUN: %clangxx_tsan -O1 %p/SharedLibs/load_shared_lib-so.cc \  // RUN:     -fPIC -shared -o %t-so.so -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <dlfcn.h>  #include <pthread.h> diff --git a/compiler-rt/lib/tsan/lit_tests/longjmp3.cc b/compiler-rt/lib/tsan/lit_tests/longjmp3.cc index 87fabd0b3be..ae2cfd05fe1 100644 --- a/compiler-rt/lib/tsan/lit_tests/longjmp3.cc +++ b/compiler-rt/lib/tsan/lit_tests/longjmp3.cc @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stdlib.h> diff --git a/compiler-rt/lib/tsan/lit_tests/longjmp4.cc b/compiler-rt/lib/tsan/lit_tests/longjmp4.cc index a8764dda5a6..6b0526ef3a6 100644 --- a/compiler-rt/lib/tsan/lit_tests/longjmp4.cc +++ b/compiler-rt/lib/tsan/lit_tests/longjmp4.cc @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stdlib.h> diff --git a/compiler-rt/lib/tsan/lit_tests/malloc_stack.cc b/compiler-rt/lib/tsan/lit_tests/malloc_stack.cc index c185623ff5c..3603497ef31 100644 --- a/compiler-rt/lib/tsan/lit_tests/malloc_stack.cc +++ b/compiler-rt/lib/tsan/lit_tests/malloc_stack.cc @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/memcpy_race.cc b/compiler-rt/lib/tsan/lit_tests/memcpy_race.cc index 857728ba054..8f39113674d 100644 --- a/compiler-rt/lib/tsan/lit_tests/memcpy_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/memcpy_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mop_with_offset.cc b/compiler-rt/lib/tsan/lit_tests/mop_with_offset.cc index 0c11ef6b918..2b6a4ff50aa 100644 --- a/compiler-rt/lib/tsan/lit_tests/mop_with_offset.cc +++ b/compiler-rt/lib/tsan/lit_tests/mop_with_offset.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mop_with_offset2.cc b/compiler-rt/lib/tsan/lit_tests/mop_with_offset2.cc index ee0d64a0afb..037c4db5f52 100644 --- a/compiler-rt/lib/tsan/lit_tests/mop_with_offset2.cc +++ b/compiler-rt/lib/tsan/lit_tests/mop_with_offset2.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutex_destroy_locked.cc b/compiler-rt/lib/tsan/lit_tests/mutex_destroy_locked.cc index 27a04248b17..9b020d31b94 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutex_destroy_locked.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutex_destroy_locked.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutexset1.cc b/compiler-rt/lib/tsan/lit_tests/mutexset1.cc index f32a770ab07..ca87a7ba047 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutexset1.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutexset1.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutexset2.cc b/compiler-rt/lib/tsan/lit_tests/mutexset2.cc index 15d23033251..9ccf952b005 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutexset2.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutexset2.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutexset3.cc b/compiler-rt/lib/tsan/lit_tests/mutexset3.cc index 6ac7ad15e4f..272ddafb3c4 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutexset3.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutexset3.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutexset4.cc b/compiler-rt/lib/tsan/lit_tests/mutexset4.cc index 75684cf9ae5..be751fa92bf 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutexset4.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutexset4.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutexset5.cc b/compiler-rt/lib/tsan/lit_tests/mutexset5.cc index 6e75810aff2..e013edb4656 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutexset5.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutexset5.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutexset6.cc b/compiler-rt/lib/tsan/lit_tests/mutexset6.cc index 4b19a12e043..f5e6e66becf 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutexset6.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutexset6.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutexset7.cc b/compiler-rt/lib/tsan/lit_tests/mutexset7.cc index 3ec1b520298..51451b21549 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutexset7.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutexset7.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/mutexset8.cc b/compiler-rt/lib/tsan/lit_tests/mutexset8.cc index 6db63f7d16d..8822b050e93 100644 --- a/compiler-rt/lib/tsan/lit_tests/mutexset8.cc +++ b/compiler-rt/lib/tsan/lit_tests/mutexset8.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/oob_race.cc b/compiler-rt/lib/tsan/lit_tests/oob_race.cc index 2e7f0593fd8..9d8e2220d9a 100644 --- a/compiler-rt/lib/tsan/lit_tests/oob_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/oob_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_barrier.c b/compiler-rt/lib/tsan/lit_tests/race_on_barrier.c index 3e76f8bf5e2..3c0199dec22 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_barrier.c +++ b/compiler-rt/lib/tsan/lit_tests/race_on_barrier.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stddef.h> diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_barrier2.c b/compiler-rt/lib/tsan/lit_tests/race_on_barrier2.c index 46a4f50b133..62773d43e66 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_barrier2.c +++ b/compiler-rt/lib/tsan/lit_tests/race_on_barrier2.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stddef.h> diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_heap.cc b/compiler-rt/lib/tsan/lit_tests/race_on_heap.cc index 35434eac185..a84c0de9655 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_heap.cc +++ b/compiler-rt/lib/tsan/lit_tests/race_on_heap.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdlib.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_mutex.c b/compiler-rt/lib/tsan/lit_tests/race_on_mutex.c index aff32f9bb1a..e6634141483 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_mutex.c +++ b/compiler-rt/lib/tsan/lit_tests/race_on_mutex.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stddef.h> diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_mutex2.c b/compiler-rt/lib/tsan/lit_tests/race_on_mutex2.c index 84bef75a344..80c395e1f9c 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_mutex2.c +++ b/compiler-rt/lib/tsan/lit_tests/race_on_mutex2.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stddef.h> diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_read.cc b/compiler-rt/lib/tsan/lit_tests/race_on_read.cc index 7d226814816..4ca4b25bfa8 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_read.cc +++ b/compiler-rt/lib/tsan/lit_tests/race_on_read.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_write.cc b/compiler-rt/lib/tsan/lit_tests/race_on_write.cc index f1b0bb1cbd6..8a56c8464b9 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_write.cc +++ b/compiler-rt/lib/tsan/lit_tests/race_on_write.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/race_with_finished_thread.cc b/compiler-rt/lib/tsan/lit_tests/race_with_finished_thread.cc index a267290e661..c713c67a398 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_with_finished_thread.cc +++ b/compiler-rt/lib/tsan/lit_tests/race_with_finished_thread.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/signal_errno.cc b/compiler-rt/lib/tsan/lit_tests/signal_errno.cc index 8181555f6f6..2febca38294 100644 --- a/compiler-rt/lib/tsan/lit_tests/signal_errno.cc +++ b/compiler-rt/lib/tsan/lit_tests/signal_errno.cc @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stdlib.h> diff --git a/compiler-rt/lib/tsan/lit_tests/signal_malloc.cc b/compiler-rt/lib/tsan/lit_tests/signal_malloc.cc index 4dbc2f78ab1..ef180b8a25b 100644 --- a/compiler-rt/lib/tsan/lit_tests/signal_malloc.cc +++ b/compiler-rt/lib/tsan/lit_tests/signal_malloc.cc @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <stdio.h>  #include <stdlib.h>  #include <signal.h> diff --git a/compiler-rt/lib/tsan/lit_tests/sigsuspend.cc b/compiler-rt/lib/tsan/lit_tests/sigsuspend.cc index 4da20a6fa1f..78d507fa0af 100644 --- a/compiler-rt/lib/tsan/lit_tests/sigsuspend.cc +++ b/compiler-rt/lib/tsan/lit_tests/sigsuspend.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <assert.h>  #include <stdlib.h>  #include <signal.h> diff --git a/compiler-rt/lib/tsan/lit_tests/simple_race.c b/compiler-rt/lib/tsan/lit_tests/simple_race.c index 44aff897406..80a83e01a29 100644 --- a/compiler-rt/lib/tsan/lit_tests/simple_race.c +++ b/compiler-rt/lib/tsan/lit_tests/simple_race.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/simple_race.cc b/compiler-rt/lib/tsan/lit_tests/simple_race.cc index 99cf228ac2f..47854cfd9a3 100644 --- a/compiler-rt/lib/tsan/lit_tests/simple_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/simple_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/simple_stack.c b/compiler-rt/lib/tsan/lit_tests/simple_stack.c index 4539cb7c1f3..a447e288044 100644 --- a/compiler-rt/lib/tsan/lit_tests/simple_stack.c +++ b/compiler-rt/lib/tsan/lit_tests/simple_stack.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/simple_stack2.cc b/compiler-rt/lib/tsan/lit_tests/simple_stack2.cc index bf27a15ffad..7a034c4cd6e 100644 --- a/compiler-rt/lib/tsan/lit_tests/simple_stack2.cc +++ b/compiler-rt/lib/tsan/lit_tests/simple_stack2.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/sleep_sync.cc b/compiler-rt/lib/tsan/lit_tests/sleep_sync.cc index c3d47d31174..217a52a097c 100644 --- a/compiler-rt/lib/tsan/lit_tests/sleep_sync.cc +++ b/compiler-rt/lib/tsan/lit_tests/sleep_sync.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/sleep_sync2.cc b/compiler-rt/lib/tsan/lit_tests/sleep_sync2.cc index d9961bccc80..e22999279f9 100644 --- a/compiler-rt/lib/tsan/lit_tests/sleep_sync2.cc +++ b/compiler-rt/lib/tsan/lit_tests/sleep_sync2.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/stack_race.cc b/compiler-rt/lib/tsan/lit_tests/stack_race.cc index beeb57353bf..7fabce22a85 100644 --- a/compiler-rt/lib/tsan/lit_tests/stack_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/stack_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h> diff --git a/compiler-rt/lib/tsan/lit_tests/stack_race2.cc b/compiler-rt/lib/tsan/lit_tests/stack_race2.cc index 5bdf1bd664a..c759ec92774 100644 --- a/compiler-rt/lib/tsan/lit_tests/stack_race2.cc +++ b/compiler-rt/lib/tsan/lit_tests/stack_race2.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/static_init3.cc b/compiler-rt/lib/tsan/lit_tests/static_init3.cc index 40fd4b940f5..70a3c16878c 100644 --- a/compiler-rt/lib/tsan/lit_tests/static_init3.cc +++ b/compiler-rt/lib/tsan/lit_tests/static_init3.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdlib.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/suppress_same_address.cc b/compiler-rt/lib/tsan/lit_tests/suppress_same_address.cc index 174d1cc8fcb..c516f89529f 100644 --- a/compiler-rt/lib/tsan/lit_tests/suppress_same_address.cc +++ b/compiler-rt/lib/tsan/lit_tests/suppress_same_address.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  int X; diff --git a/compiler-rt/lib/tsan/lit_tests/suppress_same_stacks.cc b/compiler-rt/lib/tsan/lit_tests/suppress_same_stacks.cc index 32bff9d5007..f0ab8b30435 100644 --- a/compiler-rt/lib/tsan/lit_tests/suppress_same_stacks.cc +++ b/compiler-rt/lib/tsan/lit_tests/suppress_same_stacks.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  volatile int N;  // Prevent loop unrolling. diff --git a/compiler-rt/lib/tsan/lit_tests/thread_leak3.c b/compiler-rt/lib/tsan/lit_tests/thread_leak3.c index 3577164cad4..5f447dbdbdf 100644 --- a/compiler-rt/lib/tsan/lit_tests/thread_leak3.c +++ b/compiler-rt/lib/tsan/lit_tests/thread_leak3.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/thread_leak5.c b/compiler-rt/lib/tsan/lit_tests/thread_leak5.c index fc72b149ec2..329f7233a38 100644 --- a/compiler-rt/lib/tsan/lit_tests/thread_leak5.c +++ b/compiler-rt/lib/tsan/lit_tests/thread_leak5.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/thread_name.cc b/compiler-rt/lib/tsan/lit_tests/thread_name.cc index 37f308ffbc0..646ab583624 100644 --- a/compiler-rt/lib/tsan/lit_tests/thread_name.cc +++ b/compiler-rt/lib/tsan/lit_tests/thread_name.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/tiny_race.c b/compiler-rt/lib/tsan/lit_tests/tiny_race.c index 1ade8e2bf52..f77e1606c1d 100644 --- a/compiler-rt/lib/tsan/lit_tests/tiny_race.c +++ b/compiler-rt/lib/tsan/lit_tests/tiny_race.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/tls_race.cc b/compiler-rt/lib/tsan/lit_tests/tls_race.cc index bed6aafaacf..3cbcc9dbba4 100644 --- a/compiler-rt/lib/tsan/lit_tests/tls_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/tls_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h> diff --git a/compiler-rt/lib/tsan/lit_tests/tls_race2.cc b/compiler-rt/lib/tsan/lit_tests/tls_race2.cc index 110abaa6a9d..136087065c1 100644 --- a/compiler-rt/lib/tsan/lit_tests/tls_race2.cc +++ b/compiler-rt/lib/tsan/lit_tests/tls_race2.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stddef.h>  #include <unistd.h> diff --git a/compiler-rt/lib/tsan/lit_tests/unaligned_race.cc b/compiler-rt/lib/tsan/lit_tests/unaligned_race.cc index 18bed8555cc..6ac87b577ec 100644 --- a/compiler-rt/lib/tsan/lit_tests/unaligned_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/unaligned_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <stdio.h>  #include <stdlib.h> diff --git a/compiler-rt/lib/tsan/lit_tests/vptr_harmful_race.cc b/compiler-rt/lib/tsan/lit_tests/vptr_harmful_race.cc index 76d31c00ad4..0105c4cedd9 100644 --- a/compiler-rt/lib/tsan/lit_tests/vptr_harmful_race.cc +++ b/compiler-rt/lib/tsan/lit_tests/vptr_harmful_race.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <semaphore.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/vptr_harmful_race2.cc b/compiler-rt/lib/tsan/lit_tests/vptr_harmful_race2.cc index d7e1d19a11b..378790c6234 100644 --- a/compiler-rt/lib/tsan/lit_tests/vptr_harmful_race2.cc +++ b/compiler-rt/lib/tsan/lit_tests/vptr_harmful_race2.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <semaphore.h>  #include <stdio.h> diff --git a/compiler-rt/lib/tsan/lit_tests/write_in_reader_lock.cc b/compiler-rt/lib/tsan/lit_tests/write_in_reader_lock.cc index db8bac32b6e..e872fe3ff96 100644 --- a/compiler-rt/lib/tsan/lit_tests/write_in_reader_lock.cc +++ b/compiler-rt/lib/tsan/lit_tests/write_in_reader_lock.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s +// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s  #include <pthread.h>  #include <unistd.h> | 

