Browse Source

Test Shutdown can be called multiple times.

Jisi Liu 8 năm trước cách đây
mục cha
commit
b091bfb07b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;