• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  (C) Copyright Gennadiy Rozental 2001-2014.
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 // ***************************************************************************
9 
10 #define BOOST_TEST_NO_MAIN
11 #define BOOST_TEST_ALTERNATIVE_INIT_API
12 #include <boost/test/included/unit_test.hpp>
13 using namespace boost::unit_test;
14 
15 //____________________________________________________________________________//
16 
17 BOOST_AUTO_TEST_SUITE( test_suite_1 )
18 
BOOST_AUTO_TEST_CASE(test_case_1)19 BOOST_AUTO_TEST_CASE( test_case_1 )
20 {
21      BOOST_TEST_MESSAGE( "Testing is in progress" );
22 
23      BOOST_TEST( false );
24 }
25 
BOOST_AUTO_TEST_SUITE_END()26 BOOST_AUTO_TEST_SUITE_END()
27 
28 //____________________________________________________________________________//
29 
30 bool
31 init_function()
32 {
33     // do your own initialization here
34     // if it successful return true
35 
36     // But, you CAN'T use testing tools here
37     return true;
38 }
39 
40 //____________________________________________________________________________//
41 
42 int
main(int argc,char * argv[])43 main( int argc, char* argv[] )
44 {
45     return ::boost::unit_test::unit_test_main( &init_function, argc, argv );
46 }
47 
48 //____________________________________________________________________________//
49 
50