Skip to content
Permalink
Browse files

[libclang] Fix UninstallAbortingLLVMFatalErrorHandler test

llvm-svn: 371794
  • Loading branch information
jkorous-apple committed Sep 12, 2019
1 parent 91b758f commit 5e4a03f03775422863e241326583ea74a94d0316
Showing with 3 additions and 2 deletions.
  1. +3 −2 clang/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");
}

0 comments on commit 5e4a03f

Please sign in to comment.
You can’t perform that action at this time.