diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:30:07 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:32:57 +0900 |
commit | 71d216b90256936a9638f325af9bc69d720e75de (patch) | |
tree | 9c5f682d341c7c88ad0c8e3d4b262e00b6fb691a /boost/test/impl/test_main.ipp | |
parent | 733b5d5ae2c5d625211e2985ac25728ac3f54883 (diff) | |
download | boost-71d216b90256936a9638f325af9bc69d720e75de.tar.gz boost-71d216b90256936a9638f325af9bc69d720e75de.tar.bz2 boost-71d216b90256936a9638f325af9bc69d720e75de.zip |
Imported Upstream version 1.59.0
Change-Id: I2dde00f4eca71df3eea9d251dcaecde18a6c90a5
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/test/impl/test_main.ipp')
-rw-r--r-- | boost/test/impl/test_main.ipp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/boost/test/impl/test_main.ipp b/boost/test/impl/test_main.ipp index b08f5e16c7..c95c91e88b 100644 --- a/boost/test/impl/test_main.ipp +++ b/boost/test/impl/test_main.ipp @@ -1,4 +1,4 @@ -// (C) Copyright Gennadiy Rozental 2001-2008. +// (C) Copyright Gennadiy Rozental 2001-2014. // (C) Copyright Beman Dawes 1995-2001. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at @@ -6,11 +6,8 @@ // See http://www.boost.org/libs/test for the library home page. // -// File : $RCSfile$ -// -// Version : $$Revision$ -// -// Description : implements main function for Test Execution Monitor. +/// @file +/// @brief Implements main function for Test Execution Monitor. // *************************************************************************** #ifndef BOOST_TEST_TEST_MAIN_IPP_012205GER @@ -32,16 +29,16 @@ extern int test_main( int argc, char* argv[] ); // prototype for user's test_ struct test_main_caller { test_main_caller( int argc, char** argv ) : m_argc( argc ), m_argv( argv ) {} - + void operator()() { int test_main_result = test_main( m_argc, m_argv ); // translate a test_main non-success return into a test error BOOST_CHECK( test_main_result == 0 || test_main_result == boost::exit_success ); } - + private: - // Data members + // Data members int m_argc; char** m_argv; }; @@ -53,11 +50,11 @@ private: ::boost::unit_test::test_suite* init_unit_test_suite( int argc, char* argv[] ) { using namespace ::boost::unit_test; - + framework::master_test_suite().p_name.value = "Test Program"; - + framework::master_test_suite().add( BOOST_TEST_CASE( test_main_caller( argc, argv ) ) ); - + return 0; } |