]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/test/test/usage-variants-ts/single-header-custom-main-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-main-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 // Description : header-only usage variant with custom main test
9 // ***************************************************************************
10
11 // Boost.Test
12 #define BOOST_TEST_MODULE header only test
13 #define BOOST_TEST_NO_MAIN
14 #define BOOST_TEST_ALTERNATIVE_INIT_API
15 #include <boost/test/included/unit_test.hpp>
16
17 BOOST_AUTO_TEST_CASE( test )
18 {
19 int i = 1;
20 BOOST_CHECK( i*i == 1 );
21 }
22
23 //____________________________________________________________________________//
24
25 int main(int argc, char* argv[])
26 {
27 return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
28 }
29
30 //____________________________________________________________________________//
31
32 // EOF