summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-08-07 08:46:09 +0000
committerAlexey Samsonov <samsonov@google.com>2013-08-07 08:46:09 +0000
commitfd078b94059eecf8a5c32f43dccbdee3e910c644 (patch)
treeb3cd50e67f595c9411e8ac9ef5a4ddceafb82ab8 /compiler-rt/lib
parent341770d7eadb9113b51041fad77ce578247cc4eb (diff)
downloadbcm5719-llvm-fd078b94059eecf8a5c32f43dccbdee3e910c644.tar.gz
bcm5719-llvm-fd078b94059eecf8a5c32f43dccbdee3e910c644.zip
Enable pipefail for LSan tests
llvm-svn: 187873
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/disabler.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/do_leak_check_override.cc4
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/ignore_object.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/large_allocation_leak.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/stale_stack_leak.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_default.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_file.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_initialized.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_uninitialized.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_registers.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks_threaded.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_dynamic.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_static.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_static.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/TestCases/use_unaligned.cc2
-rw-r--r--compiler-rt/lib/lsan/lit_tests/lit.common.cfg1
19 files changed, 19 insertions, 20 deletions
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/disabler.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/disabler.cc
index 6aa9f7d25a4..aef9e116276 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/disabler.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/disabler.cc
@@ -1,7 +1,7 @@
// Test for ScopedDisabler.
// RUN: LSAN_BASE="report_objects=1:use_registers=0:use_stacks=0:use_globals=0:use_tls=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/do_leak_check_override.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/do_leak_check_override.cc
index 440ba42a54c..213d2602265 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/do_leak_check_override.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/do_leak_check_override.cc
@@ -3,8 +3,8 @@
// "normal" mode (LSan runs in "strict" mode by default).
// RUN: LSAN_BASE="use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck --check-prefix=CHECK-strict %s
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t foo 2>&1 | FileCheck --check-prefix=CHECK-normal %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck --check-prefix=CHECK-strict %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t foo 2>&1 | FileCheck --check-prefix=CHECK-normal %s
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/ignore_object.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/ignore_object.cc
index 46d83f5a0b2..43744e4add8 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/ignore_object.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/ignore_object.cc
@@ -1,7 +1,7 @@
// Test for __lsan_ignore_object().
// RUN: LSAN_BASE="report_objects=1:use_registers=0:use_stacks=0:use_globals=0:use_tls=0:verbosity=3"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/large_allocation_leak.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/large_allocation_leak.cc
index 2c36721364f..28e38ca2c39 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/large_allocation_leak.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/large_allocation_leak.cc
@@ -1,7 +1,7 @@
// Test that LargeMmapAllocator's chunks aren't reachable via some internal data structure.
// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc
index d16762bd35d..6db7a183c90 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/link_turned_off.cc
@@ -2,7 +2,7 @@
// RUN: LSAN_BASE="use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
// RUN: LSAN_OPTIONS=$LSAN_BASE %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t foo 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t foo 2>&1 | FileCheck %s
#include <sanitizer/lsan_interface.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/stale_stack_leak.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/stale_stack_leak.cc
index 5129a7e7fc1..4f2b26cffbb 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/stale_stack_leak.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/stale_stack_leak.cc
@@ -1,7 +1,7 @@
// Test that out-of-scope local variables are ignored by LSan.
// RUN: LSAN_BASE="report_objects=1:use_registers=0:use_stacks=1"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE":exitcode=0" %t 2>&1 | FileCheck --check-prefix=CHECK-sanity %s
#include <stdio.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_default.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_default.cc
index 92bf5a248de..e8e0921fb25 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_default.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_default.cc
@@ -1,7 +1,7 @@
// Test for ScopedDisabler.
// RUN: LSAN_BASE="use_registers=0:use_stacks=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_file.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_file.cc
index 92bf5a248de..e8e0921fb25 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_file.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/suppressions_file.cc
@@ -1,7 +1,7 @@
// Test for ScopedDisabler.
// RUN: LSAN_BASE="use_registers=0:use_stacks=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_initialized.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_initialized.cc
index a53cdff78ac..2849495e044 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_initialized.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_initialized.cc
@@ -1,7 +1,7 @@
// Test that initialized globals are included in the root set.
// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_globals=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_globals=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_globals=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_uninitialized.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_uninitialized.cc
index d6f691fe5ad..f48d08fa3fe 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_uninitialized.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_globals_uninitialized.cc
@@ -1,7 +1,7 @@
// Test that uninitialized globals are included in the root set.
// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_globals=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_globals=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_globals=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_registers.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_registers.cc
index ed37042f1f4..636fac82227 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_registers.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_registers.cc
@@ -1,7 +1,7 @@
// Test that registers of running threads are included in the root set.
// RUN: LSAN_BASE="report_objects=1:use_stacks=0"
// RUN: %clangxx_lsan -pthread %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_registers=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_registers=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_registers=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks.cc
index d09518647fd..06a058ef873 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks.cc
@@ -1,7 +1,7 @@
// Test that stack of main thread is included in the root set.
// RUN: LSAN_BASE="report_objects=1:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_stacks=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_stacks=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_stacks=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks_threaded.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks_threaded.cc
index 479e4f7f549..9e1b1cf6013 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks_threaded.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_stacks_threaded.cc
@@ -1,7 +1,7 @@
// Test that stacks of non-main threads are included in the root set.
// RUN: LSAN_BASE="report_objects=1:use_registers=0"
// RUN: %clangxx_lsan -pthread %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_stacks=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_stacks=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_stacks=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_dynamic.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_dynamic.cc
index 944b7b879c1..3e45e1aa551 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_dynamic.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_dynamic.cc
@@ -2,7 +2,7 @@
// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx %p/SharedLibs/huge_tls_lib_so.cc -fPIC -shared -o %t-so.so
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc
index 8457ff95c85..032def7f686 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc
@@ -1,7 +1,7 @@
// Test that dynamically allocated thread-specific storage is included in the root set.
// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_static.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_static.cc
index bd5a296086c..86e2b29900e 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_static.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_static.cc
@@ -1,7 +1,7 @@
// Test that statically allocated thread-specific storage is included in the root set.
// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_static.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_static.cc
index 3ef596938cd..460aee451f6 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_static.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_tls_static.cc
@@ -1,7 +1,7 @@
// Test that statically allocated TLS space is included in the root set.
// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_tls=1" %t 2>&1
// RUN: LSAN_OPTIONS="" %t 2>&1
diff --git a/compiler-rt/lib/lsan/lit_tests/TestCases/use_unaligned.cc b/compiler-rt/lib/lsan/lit_tests/TestCases/use_unaligned.cc
index 890d2a8a324..851d2498794 100644
--- a/compiler-rt/lib/lsan/lit_tests/TestCases/use_unaligned.cc
+++ b/compiler-rt/lib/lsan/lit_tests/TestCases/use_unaligned.cc
@@ -1,7 +1,7 @@
// Test that unaligned pointers are detected correctly.
// RUN: LSAN_BASE="report_objects=1:use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
-// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_unaligned=0" %t 2>&1 | FileCheck %s
+// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_unaligned=0" not %t 2>&1 | FileCheck %s
// RUN: LSAN_OPTIONS=$LSAN_BASE:"use_unaligned=1" %t 2>&1
#include <stdio.h>
diff --git a/compiler-rt/lib/lsan/lit_tests/lit.common.cfg b/compiler-rt/lib/lsan/lit_tests/lit.common.cfg
index 4ff672b6a60..d52f64ccf21 100644
--- a/compiler-rt/lib/lsan/lit_tests/lit.common.cfg
+++ b/compiler-rt/lib/lsan/lit_tests/lit.common.cfg
@@ -31,4 +31,3 @@ if config.host_os not in ['Linux'] or config.host_arch not in ['x86_64']:
config.unsupported = True
config.suffixes = ['.c', '.cc', '.cpp']
-config.pipefail = False
OpenPOWER on IntegriCloud