diff --git a/tests/libtransport/main.cpp b/tests/libtransport/main.cpp index 9847222e277b2783b0cb4ecb842d1b4fb48fd905..c82b4dcb638409eb752a03a364636f82e10f5257 100644 --- a/tests/libtransport/main.cpp +++ b/tests/libtransport/main.cpp @@ -11,6 +11,8 @@ #include "log4cxx/patternlayout.h" #include "log4cxx/propertyconfigurator.h" +#include "transport/protocol.pb.h" + using namespace log4cxx; #endif @@ -55,6 +57,7 @@ int main (int argc, char* argv[]) testrunner.run(testresult, *i); } catch (const std::exception& e) { + google::protobuf::ShutdownProtobufLibrary(); std::cerr << "Error: " << e.what() << std::endl; return -1; } @@ -64,6 +67,8 @@ int main (int argc, char* argv[]) CPPUNIT_NS :: CompilerOutputter compileroutputter (&collectedresults, std::cerr); compileroutputter.write (); + google::protobuf::ShutdownProtobufLibrary(); + // return 0 if tests were successful return collectedresults.wasSuccessful () ? 0 : 1; }