// (C) Copyright Gennadiy Rozental 2001-2005. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile: unit_test_main.ipp,v $ // // Version : $Revision: 1.6 $ // // Description : main function implementation for Unit Test Framework // *************************************************************************** #ifndef BOOST_TEST_UNIT_TEST_MAIN_IPP_012205GER #define BOOST_TEST_UNIT_TEST_MAIN_IPP_012205GER // Boost.Test #include #include #include #include #include // Boost #include // STL #include #include #include //____________________________________________________________________________// // ************************************************************************** // // ************** unit test main ************** // // ************************************************************************** // int BOOST_TEST_CALL_DECL main( int argc, char* argv[] ) { using namespace boost::unit_test; try { framework::init( argc, argv ); framework::run(); results_reporter::make_report(); return runtime_config::no_result_code() ? boost::exit_success : results_collector.results( framework::master_test_suite().p_id ).result_code(); } catch( std::logic_error const& ex ) { std::cerr << "Boost.Test internal framework error: " << ex.what() << std::endl; return boost::exit_exception_failure; } catch( ... ) { std::cerr << "Boost.Test internal framework error: unknown reason" << std::endl; return boost::exit_exception_failure; } } //____________________________________________________________________________// #include // *************************************************************************** // Revision History : // // $Log: unit_test_main.ipp,v $ // Revision 1.6 2005/02/20 08:27:07 rogeeff // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates // // *************************************************************************** #endif // BOOST_TEST_UNIT_TEST_MAIN_IPP_012205GER