ソースを参照

Merge pull request #3674 from pherl/shutdown

Test Shutdown can be called multiple times.
Jisi Liu 8 年 前
コミット
c627530946
1 ファイル変更2 行追加0 行削除
  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;