aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/testing
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2017-09-21 14:08:01 -0700
committerGravatar Jisi Liu <jisi.liu@gmail.com>2017-09-21 14:08:01 -0700
commitb091bfb07bcf83972c76130d21bac3ed1b4b707a (patch)
treea7f8ef58014cf9a9beae7501c46b5ab06957c9de /src/google/protobuf/testing
parent2b0ee3fdf62577708eea74db3c31853782ae4efe (diff)
Test Shutdown can be called multiple times.
Diffstat (limited to 'src/google/protobuf/testing')
-rw-r--r--src/google/protobuf/testing/googletest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/google/protobuf/testing/googletest.cc b/src/google/protobuf/testing/googletest.cc
index 33a75ed6..91f0ef89 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;