]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/test/test/usage-variants-ts/single-header-custom-init-test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / test / test / usage-variants-ts / single-header-custom-init-test.cpp
1 // (C) Copyright Gennadiy Rozental 2001-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
6 // See http://www.boost.org/libs/test for the library home page.
7 //
8 // File : $RCSfile$
9 //
10 // Version : $Revision$
11 //
12 // Description : header-only usage variant with custom init test
13 // ***************************************************************************
14
15 // Boost.Test
16 #define BOOST_TEST_ALTERNATIVE_INIT_API
17 #include <boost/test/included/unit_test.hpp>
18
19 BOOST_AUTO_TEST_CASE( test )
20 {
21 int i = 1;
22 BOOST_CHECK( i*i == 1 );
23 }
24
25 //____________________________________________________________________________//
26
27 bool init_unit_test() {
28 boost::unit_test::framework::master_test_suite().p_name.value = "Custom init func";
29
30 return true;
31 }
32
33 //____________________________________________________________________________//
34
35 // EOF