[msan] Fix msan tests with pipefail option.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187485 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/msan/lit_tests/dso-origin.cc b/lib/msan/lit_tests/dso-origin.cc
index 6ca482d..13661c6 100644
--- a/lib/msan/lit_tests/dso-origin.cc
+++ b/lib/msan/lit_tests/dso-origin.cc
@@ -2,7 +2,7 @@
 // Test that origin tracking is enabled at runtime.
 // RUN: %clangxx_msan -fsanitize-memory-track-origins -m64 -O0 %p/SharedLibs/dso-origin-so.cc \
 // RUN:     -fPIC -shared -o %t-so.so
-// RUN: %clangxx_msan -m64 -O0 %s %t-so.so -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_msan -m64 -O0 %s %t-so.so -o %t && not %t 2>&1 | FileCheck %s
 
 #include <stdlib.h>
 
diff --git a/lib/msan/lit_tests/ioctl_custom.cc b/lib/msan/lit_tests/ioctl_custom.cc
index b4a56dc..94ed528 100644
--- a/lib/msan/lit_tests/ioctl_custom.cc
+++ b/lib/msan/lit_tests/ioctl_custom.cc
@@ -1,8 +1,8 @@
 // RUN: %clangxx_msan -m64 -O0 -g %s -o %t && %t
 // RUN: %clangxx_msan -m64 -O3 -g %s -o %t && %t
 
-// RUN: %clangxx_msan -DPOSITIVE -m64 -O0 -g %s -o %t && %t 2>&1 | FileCheck %s
-// RUN: %clangxx_msan -DPOSITIVE -m64 -O3 -g %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_msan -DPOSITIVE -m64 -O0 -g %s -o %t && not %t 2>&1 | FileCheck %s
+// RUN: %clangxx_msan -DPOSITIVE -m64 -O3 -g %s -o %t && not %t 2>&1 | FileCheck %s
 
 #include <assert.h>
 #include <stdlib.h>
diff --git a/lib/msan/lit_tests/lit.cfg b/lib/msan/lit_tests/lit.cfg
index a49a172..bc19b74 100644
--- a/lib/msan/lit_tests/lit.cfg
+++ b/lib/msan/lit_tests/lit.cfg
@@ -67,7 +67,6 @@
 
 # Default test suffixes.
 config.suffixes = ['.c', '.cc', '.cpp']
-config.pipefail = False
 
 # MemorySanitizer tests are currently supported on Linux only.
 if config.host_os not in ['Linux']: