Browse Source

Merge pull request #3674 from pherl/shutdown

Test Shutdown can be called multiple times.
Jisi Liu 8 years ago
parent
commit
c627530946
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;