Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

unit_test_main

The unit_test_main function provides an implementation of main that can be used by a test executable compiled with BOOST_TEST_NO_MAIN.

namespace boost { namespace unit_test {

int BOOST_TEST_DECL unit_test_main( init_unit_test_func init_func, int argc, char* argv[] );

} }

unit_test_main initializes the test framework, traverses the test tree and reports the result as a the return value of the function. Unexpected exceptions and system errors (signals, etc.) are caught and mapped to appropriate return values by the function.


PrevUpHomeNext