Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
[libclang] Fix UninstallAbortingLLVMFatalErrorHandler test
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371794 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit f8428b7)
  • Loading branch information
jkorous-apple authored and hyp committed Sep 13, 2019
1 parent 9154f71 commit 2aa1beb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unittests/libclang/CrashTests/LibclangCrashTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 2aa1beb

Please sign in to comment.