Merge pull request #2147 from ngie-eign:gtest-test-death-test-dont-hardcode-test-name

PiperOrigin-RevId: 235248114
This commit is contained in:
Gennadiy Civil 2019-02-22 16:39:33 -05:00
commit 37ae1fc5e6

View File

@ -68,7 +68,7 @@ TEST(CxxExceptionDeathTest, PrintsMessageForStdExceptions) {
"exceptional message");
// Verifies that the location is mentioned in the failure text.
EXPECT_NONFATAL_FAILURE(EXPECT_DEATH(throw TestException(), ""),
"googletest-death-test_ex_test.cc");
__FILE__);
}
# endif // GTEST_HAS_EXCEPTIONS