THRIFT-929. cpp: Convert tests to use boost 1.37
The boost test framework has changed significantly from boost 1.34 to
1.37. Quite a few new features have been added, and some annoying bugs
have been fixed.
This change now builds the thrift tests against boost 1.37, and updates
them to use some of the newer features.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005162 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/test/TransportTest.cpp b/lib/cpp/test/TransportTest.cpp
index c42b6ac..dceb708 100644
--- a/lib/cpp/test/TransportTest.cpp
+++ b/lib/cpp/test/TransportTest.cpp
@@ -1037,9 +1037,11 @@
initrand(options.seed);
- boost::unit_test::test_suite* suite = BOOST_TEST_SUITE("TransportTests");
+ boost::unit_test::test_suite* suite =
+ &boost::unit_test::framework::master_test_suite();
+ suite->p_name.value = "TransportTest";
TransportTestGen transport_test_generator(suite, options.sizeMultiplier);
transport_test_generator.generate();
- return suite;
+ return NULL;
}