• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  (C) Copyright Gennadiy Rozental 2005-2014.
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 
6 //  See http://www.boost.org/libs/test for the library home page.
7 
8 // Boost.Test
9 // only one file should define BOOST_TEST_MAIN/BOOST_TEST_MODULE
10 #include <boost/test/unit_test.hpp>
11 
12 // STL
13 #include <iostream>
14 
15 //____________________________________________________________________________//
16 
17 struct MyConfig2 {
MyConfig2MyConfig218     MyConfig2() { std::cout << "global setup part2\n"; }
~MyConfig2MyConfig219     ~MyConfig2() { std::cout << "global teardown part2\n"; }
20 };
21 
22 // structure MyConfig2 is used as a global fixture. You could have any number of global fxtures
23 BOOST_TEST_GLOBAL_FIXTURE( MyConfig2 );
24 
25 //____________________________________________________________________________//
26 
BOOST_AUTO_TEST_CASE(my_test2)27 BOOST_AUTO_TEST_CASE( my_test2 )
28 {
29     BOOST_CHECK( true );
30 }
31 
32 //____________________________________________________________________________//
33 
34 // EOF
35