From: Daniel Jasper Date: Tue, 11 Oct 2016 06:13:18 +0000 (+0000) Subject: Explicitly ignore return code in test for test systems that use pipefail X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0a5e3228511efe7846e4d270f114e24ec6d03c8;p=clang Explicitly ignore return code in test for test systems that use pipefail git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283853 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/show-option-names.c b/test/Driver/show-option-names.c index a5465d2da5..928fe8818a 100644 --- a/test/Driver/show-option-names.c +++ b/test/Driver/show-option-names.c @@ -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'{{$}}