diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2017-09-21 14:08:01 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2017-09-21 14:08:01 -0700 |
commit | b091bfb07bcf83972c76130d21bac3ed1b4b707a (patch) | |
tree | a7f8ef58014cf9a9beae7501c46b5ab06957c9de | |
parent | 2b0ee3fdf62577708eea74db3c31853782ae4efe (diff) | |
download | protobuf-b091bfb07bcf83972c76130d21bac3ed1b4b707a.tar.gz protobuf-b091bfb07bcf83972c76130d21bac3ed1b4b707a.tar.bz2 protobuf-b091bfb07bcf83972c76130d21bac3ed1b4b707a.zip |
Test Shutdown can be called multiple times.
-rw-r--r-- | src/google/protobuf/testing/googletest.cc | 2 |
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; |