Edgewall Software

Changes between Version 8 and Version 9 of Boost Test


Ignore:
Timestamp:
Mar 31, 2010, 12:15:05 PM (14 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Boost Test

    v8 v9  
    124124#include <boost/test/results_reporter.hpp>
    125125
     126std::ofstream out;
     127
    126128struct ReportRedirector
    127129{
    128     std::ofstream out;
    129 
    130     ReportRedirector() : out("test_results.xml")
     130    ReportRedirector()
    131131    {
     132        out.open("test_results.xml");
    132133        assert( out.is_open() );
    133134        boost::unit_test::results_reporter::set_stream(out);
     
    135136};
    136137
    137 static ReportRedirector foo;
     138BOOST_GLOBAL_FIXTURE(ReportRedirector)
    138139}}}
    139140This has been tested for boost 1.35.0.