1 // (C) Copyright Gennadiy Rozental 2001.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/test for the library home page.
10 // Version : $Revision: 74248 $
12 // Description : test tools context interfaces
13 // ***************************************************************************
15 #ifndef BOOST_TEST_TOOLS_CONTEXT_HPP_111712GER
16 #define BOOST_TEST_TOOLS_CONTEXT_HPP_111712GER
19 #include <boost/test/utils/lazy_ostream.hpp>
21 #include <boost/test/detail/suppress_warnings.hpp>
23 //____________________________________________________________________________//
26 namespace test_tools {
29 // ************************************************************************** //
30 // ************** context_frame ************** //
31 // ************************************************************************** //
33 struct BOOST_TEST_DECL context_frame {
34 explicit context_frame( ::boost::unit_test::lazy_ostream const& context_descr );
44 //____________________________________________________________________________//
46 #define BOOST_TEST_INFO( context_descr ) \
47 ::boost::unit_test::framework::add_context( BOOST_TEST_LAZY_MSG( context_descr ) , false ) \
50 //____________________________________________________________________________//
52 #define BOOST_TEST_CONTEXT( context_descr ) \
53 if( ::boost::test_tools::tt_detail::context_frame BOOST_JOIN( context_frame_, __LINE__ ) = \
54 ::boost::test_tools::tt_detail::context_frame( BOOST_TEST_LAZY_MSG( context_descr ) ) ) \
57 //____________________________________________________________________________//
59 } // namespace tt_detail
60 } // namespace test_tools
63 #include <boost/test/detail/enable_warnings.hpp>
65 #endif // BOOST_TEST_TOOLS_CONTEXT_HPP_111712GER