THRIFT-3329: fix C++ tests incompatibility with boost-1.59
Client: C++
Patch: James E. King, III <jim.king@simplivity.com>
This closes #620
diff --git a/lib/cpp/test/TServerIntegrationTest.cpp b/lib/cpp/test/TServerIntegrationTest.cpp
index 38cbc21..f530771 100644
--- a/lib/cpp/test/TServerIntegrationTest.cpp
+++ b/lib/cpp/test/TServerIntegrationTest.cpp
@@ -176,7 +176,7 @@
pEventHandler->wait();
}
- BOOST_MESSAGE("server is listening");
+ BOOST_TEST_MESSAGE("server is listening");
}
void blockUntilAccepted(uint64_t numAccepted) {
@@ -185,16 +185,16 @@
pEventHandler->wait();
}
- BOOST_MESSAGE(boost::format("server has accepted %1%") % numAccepted);
+ BOOST_TEST_MESSAGE(boost::format("server has accepted %1%") % numAccepted);
}
void stopServer() {
if (pServerThread) {
pServer->stop();
- BOOST_MESSAGE("server stop completed");
+ BOOST_TEST_MESSAGE("server stop completed");
pServerThread->join();
- BOOST_MESSAGE("server thread joined");
+ BOOST_TEST_MESSAGE("server thread joined");
pServerThread.reset();
}
}