]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/test/test/usage-variants-ts/shared-library-custom-init-test.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / test / test / usage-variants-ts / shared-library-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 : shared library usage variant with custom init test
13 // ***************************************************************************
14
15 // Boost.Test
16 #include <boost/test/unit_test.hpp>
17
18 BOOST_AUTO_TEST_CASE( test )
19 {
20 int i = 1;
21 BOOST_CHECK( i*i == 1 );
22 }
23
24 //____________________________________________________________________________//
25
26 bool init_unit_test() {
27 boost::unit_test::framework::master_test_suite().p_name.value = "Custom init func";
28
29 return true;
30 }
31
32 //____________________________________________________________________________//
33
34 int main(int argc, char* argv[])
35 {
36 return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
37 }
38
39 //____________________________________________________________________________//
40
41 // EOF