From b091bfb07bcf83972c76130d21bac3ed1b4b707a Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Thu, 21 Sep 2017 14:08:01 -0700 Subject: [PATCH] Test Shutdown can be called multiple times. --- src/google/protobuf/testing/googletest.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/google/protobuf/testing/googletest.cc b/src/google/protobuf/testing/googletest.cc index 33a75ed68..91f0ef89d 100644 --- a/src/google/protobuf/testing/googletest.cc +++ b/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;