Browse Source

Test Shutdown can be called multiple times.

Jisi Liu 8 years ago
parent
commit
b091bfb07b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/google/protobuf/testing/googletest.cc

+ 2 - 0
src/google/protobuf/testing/googletest.cc

@@ -286,6 +286,8 @@ namespace {
 struct ForceShutdown {
   ~ForceShutdown() {
     ShutdownProtobufLibrary();
+    // Test to shutdown the library twice, which should succeed.
+    ShutdownProtobufLibrary();
   }
 } force_shutdown;