mirror of
https://github.com/boostorg/test.git
synced 2026-01-27 07:22:11 +00:00
25 lines
720 B
C++
Executable File
25 lines
720 B
C++
Executable File
//[example50
|
|
#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 );
|
|
}
|
|
|
|
//____________________________________________________________________________//
|
|
//]
|