Commits

Anonymous committed 35bdc22

Protect a new death test with GTEST_HAS_DEATH_TEST, since MinGW doesn't support it.

Comments (0)

Files changed (1)

src/google/protobuf/extension_set_unittest.cc

   }
 }
 
+#ifdef GTEST_HAS_DEATH_TEST
+
 TEST(ExtensionSetTest, InvalidEnumDeath) {
   unittest::TestAllExtensions message;
   EXPECT_DEBUG_DEATH(
     "IsValid");
 }
 
+#endif GTEST_HAS_DEATH_TEST
+
 }  // namespace
 }  // namespace internal
 }  // namespace protobuf