]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/test/example/unit_test_example_09_2.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / test / example / unit_test_example_09_2.cpp
CommitLineData
7c673cae
FG
1// (C) Copyright Gennadiy Rozental 2005-2014.
2// Distributed under the Boost Software License, Version 1.0.
b32b8144 3// (See accompanying file LICENSE_1_0.txt or copy at
7c673cae
FG
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
b32b8144
FG
17struct MyConfig2 {
18 MyConfig2() { std::cout << "global setup part2\n"; }
19 ~MyConfig2() { std::cout << "global teardown part2\n"; }
7c673cae
FG
20};
21
22// structure MyConfig2 is used as a global fixture. You could have any number of global fxtures
b32b8144 23BOOST_TEST_GLOBAL_FIXTURE( MyConfig2 );
7c673cae
FG
24
25//____________________________________________________________________________//
26
27BOOST_AUTO_TEST_CASE( my_test2 )
28{
29 BOOST_CHECK( true );
30}
31
32//____________________________________________________________________________//
33
34// EOF