[libclang] Fix UninstallAbortingLLVMFatalErrorHandler test

llvm-svn: 371794
This commit is contained in:
Jan Korous 2019-09-12 23:51:48 +00:00
parent 91b758f358
commit 5e4a03f037
1 changed files with 3 additions and 2 deletions

View File

@ -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");
}