forked from OSchip/llvm-project
[libclang] Fix UninstallAbortingLLVMFatalErrorHandler test
llvm-svn: 371794
This commit is contained in:
parent
91b758f358
commit
5e4a03f037
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue