From: Reid Kleckner Date: Tue, 10 Sep 2019 21:54:16 +0000 (+0000) Subject: Actually reorder not and env in crash-recovery-modules.m X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3598d5fd438930753556a6c32edf2fff12273d21;p=clang Actually reorder not and env in crash-recovery-modules.m git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371559 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/crash-recovery-modules.m b/test/Index/crash-recovery-modules.m index 57d1cf7d0e..85b39cf58d 100644 --- a/test/Index/crash-recovery-modules.m +++ b/test/Index/crash-recovery-modules.m @@ -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 > /dev/null 2> %t.err +// RUN: env CINDEXTEST_FAILONERROR=1 not 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 > /dev/null 2> %t.err +// RUN: env CINDEXTEST_FAILONERROR=1 not 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!