r371794 - [libclang] Fix UninstallAbortingLLVMFatalErrorHandler test
Jan Korous via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 16:51:48 PDT 2019
Author: jkorous
Date: Thu Sep 12 16:51:48 2019
New Revision: 371794
URL: http://llvm.org/viewvc/llvm-project?rev=371794&view=rev
Log:
[libclang] Fix UninstallAbortingLLVMFatalErrorHandler test
Modified:
cfe/trunk/unittests/libclang/CrashTests/LibclangCrashTest.cpp
Modified: cfe/trunk/unittests/libclang/CrashTests/LibclangCrashTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/CrashTests/LibclangCrashTest.cpp?rev=371794&r1=371793&r2=371794&view=diff
==============================================================================
--- cfe/trunk/unittests/libclang/CrashTests/LibclangCrashTest.cpp (original)
+++ cfe/trunk/unittests/libclang/CrashTests/LibclangCrashTest.cpp Thu Sep 12 16:51:48 2019
@@ -31,6 +31,7 @@ TEST_F(LibclangParseTest, UninstallAbort
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");
}
More information about the cfe-commits
mailing list