diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2015-10-29 20:43:31 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2015-10-29 20:43:31 +0000 |
| commit | b25423525c4a27c37599efb8482c3e60515df638 (patch) | |
| tree | 25db2972aaf00949d33beb13098391e3432e2b19 | |
| parent | d006c9368d655ad461636ccda9375f71cb3b01b0 (diff) | |
| download | bcm5719-llvm-b25423525c4a27c37599efb8482c3e60515df638.tar.gz bcm5719-llvm-b25423525c4a27c37599efb8482c3e60515df638.zip | |
Suppress uninteresting output from crash-recovery-modules.m
No behavior change, but it makes this test a bit easier to debug when it fails.
llvm-svn: 251650
| -rw-r--r-- | clang/test/Index/crash-recovery-modules.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Index/crash-recovery-modules.m b/clang/test/Index/crash-recovery-modules.m index 431c23f7dca..3e7e8059aaa 100644 --- a/clang/test/Index/crash-recovery-modules.m +++ b/clang/test/Index/crash-recovery-modules.m @@ -2,13 +2,13 @@ // RUN: rm -rf %t // Parse the file, such that building the module will cause Clang to crash. -// RUN: not env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DCRASH %s 2> %t.err +// RUN: not env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DCRASH %s > /dev/null 2> %t.err // RUN: FileCheck < %t.err -check-prefix=CHECK-CRASH %s // CHECK-CRASH: crash-recovery-modules.m:16:9:{16:2-16:14}: fatal error: could not build module 'Crash' // Parse the file again, without crashing, to make sure that // subsequent parses do the right thing. -// RUN: env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers %s +// RUN: env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers %s > /dev/null // REQUIRES: crash-recovery // REQUIRES: shell @@ -26,10 +26,10 @@ void test() { // RUN: rm -rf %t // Check that libclang crash-recovery works; both with a module building crash... -// RUN: not env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DCRASH -DLIBCLANG_CRASH %s 2> %t.err +// RUN: not env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DCRASH -DLIBCLANG_CRASH %s > /dev/null 2> %t.err // RUN: FileCheck < %t.err -check-prefix=CHECK-LIBCLANG-CRASH %s // ...and with module building successful. -// RUN: not env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DLIBCLANG_CRASH %s 2> %t.err +// RUN: not env CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DLIBCLANG_CRASH %s > /dev/null 2> %t.err // RUN: FileCheck < %t.err -check-prefix=CHECK-LIBCLANG-CRASH %s // CHECK-LIBCLANG-CRASH: libclang: crash detected during parsing // CHECK-LIBCLANG-CRASH: Unable to load translation unit! |

