]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/test/doc/examples/custom_main.run-fail.cpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / test / doc / examples / custom_main.run-fail.cpp
1 // (C) Copyright Andrzej Krzemienski 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 //[example_code
9 #define BOOST_TEST_MODULE custom_main
10 #define BOOST_TEST_NO_MAIN
11 #define BOOST_TEST_ALTERNATIVE_INIT_API
12 #include <boost/test/included/unit_test.hpp>
13 #include <iostream>
14 namespace utf = boost::unit_test;
15
16 BOOST_AUTO_TEST_CASE(test1)
17 {
18 BOOST_TEST(false);
19 }
20
21 void make_use_of(char**)
22 {
23 std::cout << "Using custom entry point..." << std::endl;
24 }
25
26 int main(int argc, char* argv[], char* envp[])
27 {
28 make_use_of(envp);
29 return utf::unit_test_main(init_unit_test, argc, argv);
30 }
31 //]