Changes between Version 8 and Version 9 of Boost Test
- Timestamp:
- Mar 31, 2010, 12:15:05 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Boost Test
v8 v9 124 124 #include <boost/test/results_reporter.hpp> 125 125 126 std::ofstream out; 127 126 128 struct ReportRedirector 127 129 { 128 std::ofstream out; 129 130 ReportRedirector() : out("test_results.xml") 130 ReportRedirector() 131 131 { 132 out.open("test_results.xml"); 132 133 assert( out.is_open() ); 133 134 boost::unit_test::results_reporter::set_stream(out); … … 135 136 }; 136 137 137 static ReportRedirector foo; 138 BOOST_GLOBAL_FIXTURE(ReportRedirector) 138 139 }}} 139 140 This has been tested for boost 1.35.0.