aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/google/protobuf/extension_set_unittest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/google/protobuf/extension_set_unittest.cc b/src/google/protobuf/extension_set_unittest.cc
index dfd88318..037f20a3 100644
--- a/src/google/protobuf/extension_set_unittest.cc
+++ b/src/google/protobuf/extension_set_unittest.cc
@@ -465,6 +465,8 @@ TEST(ExtensionSetTest, SpaceUsedExcludingSelf) {
}
}
+#ifdef GTEST_HAS_DEATH_TEST
+
TEST(ExtensionSetTest, InvalidEnumDeath) {
unittest::TestAllExtensions message;
EXPECT_DEBUG_DEATH(
@@ -473,6 +475,8 @@ TEST(ExtensionSetTest, InvalidEnumDeath) {
"IsValid");
}
+#endif GTEST_HAS_DEATH_TEST
+
} // namespace
} // namespace internal
} // namespace protobuf