]> granicus.if.org Git - clang/commitdiff
Explicitly ignore return code in test for test systems that use pipefail
authorDaniel Jasper <djasper@google.com>
Tue, 11 Oct 2016 06:13:18 +0000 (06:13 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 11 Oct 2016 06:13:18 +0000 (06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283853 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/show-option-names.c

index a5465d2da5e10c4eb4699dfedbe0fa04b9956e7b..928fe8818a6b7c31669a9c1fd1b1409659ca79b6 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %clang -c -target i386-apple-darwin10 -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-SHOW-OPTION-NAMES %s
+// RUN: (%clang -c -target i386-apple-darwin10 -isysroot /FOO %s 2>&1 || true) | FileCheck --check-prefix=CHECK-SHOW-OPTION-NAMES %s
 // CHECK-SHOW-OPTION-NAMES: warning: no such sysroot directory: '{{([A-Za-z]:.*)?}}/FOO' [-Wmissing-sysroot]
 
-// RUN: %clang -c -target i386-apple-darwin10 -fno-diagnostics-show-option -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-NO-SHOW-OPTION-NAMES %s
+// RUN: (%clang -c -target i386-apple-darwin10 -fno-diagnostics-show-option -isysroot /FOO %s 2>&1 || true) | FileCheck --check-prefix=CHECK-NO-SHOW-OPTION-NAMES %s
 // CHECK-NO-SHOW-OPTION-NAMES: warning: no such sysroot directory: '{{([A-Za-z]:.*)?}}/FOO'{{$}}