]>
git.proxmox.com Git - ceph.git/blob - 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)
6 // See http://www.boost.org/libs/test for the library home page.
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>
14 namespace utf
= boost::unit_test
;
16 BOOST_AUTO_TEST_CASE(test1
)
21 void make_use_of(char**)
23 std::cout
<< "Using custom entry point..." << std::endl
;
26 int main(int argc
, char* argv
[], char* envp
[])
29 return utf::unit_test_main(init_unit_test
, argc
, argv
);