2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-27 07:22:11 +00:00
Files
test/doc/v2/examples/example50.cpp
Gennadiy Rozental ced5d625dc after review
2014-11-18 00:12:29 -05:00

25 lines
723 B
C++
Executable File

//[example_code
#define BOOST_TEST_MODULE example
#include <boost/test/included/unit_test.hpp>
#include <fstream>
//____________________________________________________________________________//
struct MyConfig {
MyConfig() : test_log( "example.log" ) { boost::unit_test::unit_test_log.set_stream( test_log ); }
~MyConfig() { boost::unit_test::unit_test_log.set_stream( std::cout ); }
std::ofstream test_log;
};
//____________________________________________________________________________//
BOOST_GLOBAL_FIXTURE( MyConfig );
BOOST_AUTO_TEST_CASE( test_case )
{
BOOST_CHECK( false );
}
//____________________________________________________________________________//
//]