Commit 708873b4 by Tom Hughes Committed by Copybara-Service

Use "#if GTEST_HAS_DEATH_TEST" instead of "#ifdef GTEST_HAS_DEATH_TEST"

This is consistent with the rest of the GTEST_HAS_DEATH usages in
the code and the example in gtest-port.h.

PiperOrigin-RevId: 500740093
Change-Id: I2acc158116b0e8bccc8ab45d75c8059828a4c251
parent 209a5954
...@@ -443,7 +443,7 @@ TEST(StrCat, AvoidsMemcpyWithNullptr) { ...@@ -443,7 +443,7 @@ TEST(StrCat, AvoidsMemcpyWithNullptr) {
EXPECT_EQ(result, "12345"); EXPECT_EQ(result, "12345");
} }
#ifdef GTEST_HAS_DEATH_TEST #if GTEST_HAS_DEATH_TEST
TEST(StrAppend, Death) { TEST(StrAppend, Death) {
std::string s = "self"; std::string s = "self";
// on linux it's "assertion", on mac it's "Assertion", // on linux it's "assertion", on mac it's "Assertion",
......
...@@ -265,7 +265,7 @@ TEST(SubstituteTest, AbslStringifyWithEnum) { ...@@ -265,7 +265,7 @@ TEST(SubstituteTest, AbslStringifyWithEnum) {
EXPECT_EQ(absl::Substitute("$0", e), "Choices"); EXPECT_EQ(absl::Substitute("$0", e), "Choices");
} }
#ifdef GTEST_HAS_DEATH_TEST #if GTEST_HAS_DEATH_TEST
TEST(SubstituteDeathTest, SubstituteDeath) { TEST(SubstituteDeathTest, SubstituteDeath) {
EXPECT_DEBUG_DEATH( EXPECT_DEBUG_DEATH(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment