testsuite.hh
Go to the documentation of this file.
00001 #ifndef TEST_SUITE_HH
00002 #define TEST_SUITE_HH
00003 
00004 #include <boost/version.hpp>
00005 #include <boost/test/test_tools.hpp>
00006 #include <boost/test/unit_test.hpp>
00007 #include <boost/test/unit_test_log.hpp>
00008 
00009 using namespace boost::unit_test;
00010 
00011 #ifndef BOOST_REQUIRE_THROW
00012 #  define BOOST_REQUIRE_THROW(s,c) BOOST_CHECK_THROW(s,c)
00013 #  define BOOST_REQUIRE_NO_THROW(s) BOOST_CHECK_NO_THROW(s)
00014 #  define BOOST_REQUIRE_EQUAL(s,c) BOOST_CHECK_EQUAL(s,c)
00015 #endif
00016 
00017 #if BOOST_VERSION < 103300
00018 inline void set_log_threshold_level(log_level lev)
00019 { unit_test_log::instance().set_log_threshold_level(lev); }
00020 #else
00021 inline void set_log_threshold_level(log_level lev)
00022 { unit_test_log.set_threshold_level(lev); }
00023 #endif
00024 
00025 #endif
00026 


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Mon Oct 6 2014 03:17:01