example20.run.cpp 783 B

12345678910111213141516171819202122232425262728
  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 <iostream>
  10. //____________________________________________________________________________//
  11. struct MyConfig {
  12. MyConfig() { std::cout << "global setup\n"; }
  13. ~MyConfig() { std::cout << "global teardown\n"; }
  14. };
  15. //____________________________________________________________________________//
  16. BOOST_TEST_GLOBAL_FIXTURE( MyConfig );
  17. BOOST_AUTO_TEST_CASE( test_case )
  18. {
  19. BOOST_TEST( true );
  20. }
  21. //]