example51.run.cpp 671 B

123456789101112131415161718192021
  1. // (C) Copyright Gennadiy Rozental 2011-2015.
  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)
  5. // See http://www.boost.org/libs/test for the library home page.
  6. //[example_code
  7. #define BOOST_TEST_MODULE example
  8. #include <boost/test/included/unit_test.hpp>
  9. #include <boost/test/unit_test_parameters.hpp>
  10. using namespace boost::unit_test;
  11. BOOST_AUTO_TEST_CASE( test_case0 )
  12. {
  13. if( runtime_config::get<log_level>( runtime_config::btrt_log_level ) < log_warnings )
  14. unit_test_log.set_threshold_level( log_warnings );
  15. BOOST_WARN( sizeof(int) > 4 );
  16. }
  17. //]