From 2aa1bebbf18dc8660d221cc86bf73ff59caf9320 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Thu, 12 Sep 2019 23:51:48 +0000 Subject: [PATCH] [libclang] Fix UninstallAbortingLLVMFatalErrorHandler test git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371794 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit f8428b7fc1e2a00c73bfeda0072ffbc1806749e9) --- unittests/libclang/CrashTests/LibclangCrashTest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unittests/libclang/CrashTests/LibclangCrashTest.cpp b/unittests/libclang/CrashTests/LibclangCrashTest.cpp index 821ef849ae3..3ccdb16cce4 100644 --- a/unittests/libclang/CrashTests/LibclangCrashTest.cpp +++ b/unittests/libclang/CrashTests/LibclangCrashTest.cpp @@ -31,6 +31,7 @@ TEST_F(LibclangParseTest, UninstallAbortingLLVMFatalErrorHandler) { std::string Main = "main.h"; WriteFile(Main, "#pragma clang __debug llvm_fatal_error"); - EXPECT_NO_FATAL_FAILURE(clang_parseTranslationUnit( - Index, Main.c_str(), nullptr, 0, nullptr, 0, TUFlags)); + EXPECT_EXIT(clang_parseTranslationUnit( + Index, Main.c_str(), nullptr, 0, nullptr, 0, TUFlags), + ::testing::ExitedWithCode(1), "ERROR"); }