/usr/include/boost/test/impl
NameSizeModeActions
compiler_log_formatter.ipp97570644editdlrm
cpp_main.ipp46140644editdlrm
debug.ipp321860644editdlrm
decorator.ipp79190644editdlrm
execution_monitor.ipp531260644editdlrm
framework.ipp702610644editdlrm
junit_log_formatter.ipp311600644editdlrm
plain_report_formatter.ipp75550644editdlrm
progress_monitor.ipp55220644editdlrm
results_collector.ipp109650644editdlrm
results_reporter.ipp57010644editdlrm
test_framework_init_observer.ipp23370644editdlrm
test_main.ipp21000644editdlrm
test_tools.ipp272630644editdlrm
test_tree.ipp185230644editdlrm
unit_test_log.ipp262890644editdlrm
unit_test_main.ipp104850644editdlrm
unit_test_monitor.ipp31770644editdlrm
unit_test_parameters.ipp327090644editdlrm
xml_log_formatter.ipp70280644editdlrm
xml_report_formatter.ipp39160644editdlrm
Edit: /usr/include/boost/test/impl/unit_test_monitor.ipp (3177B)
// (C) Copyright Gennadiy Rozental 2001. // 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$ // // Version : $Revision$ // // Description : implements specific subclass of Executon Monitor used by Unit // Test Framework to monitor test cases run. // *************************************************************************** #ifndef BOOST_TEST_UNIT_TEST_MONITOR_IPP_012205GER #define BOOST_TEST_UNIT_TEST_MONITOR_IPP_012205GER // Boost.Test #include #include #include #include #include //____________________________________________________________________________// namespace boost { namespace unit_test { // singleton pattern BOOST_TEST_SINGLETON_CONS_IMPL(unit_test_monitor_t) // ************************************************************************** // // ************** unit_test_monitor ************** // // ************************************************************************** // unit_test_monitor_t::error_level unit_test_monitor_t::execute_and_translate( boost::function const& func, unsigned long int timeout_microseconds ) { BOOST_TEST_I_TRY { p_catch_system_errors.value = runtime_config::get( runtime_config::btrt_catch_sys_errors ); p_timeout.value = timeout_microseconds; p_auto_start_dbg.value = runtime_config::get( runtime_config::btrt_auto_start_dbg ); p_use_alt_stack.value = runtime_config::get( runtime_config::btrt_use_alt_stack ); p_detect_fp_exceptions.value = runtime_config::get( runtime_config::btrt_detect_fp_except ); vexecute( func ); } BOOST_TEST_I_CATCH( execution_exception, ex ) { framework::exception_caught( ex ); framework::test_unit_aborted( framework::current_test_unit() ); // translate execution_exception::error_code to error_level switch( ex.code() ) { case execution_exception::no_error: return test_ok; case execution_exception::user_error: return unexpected_exception; case execution_exception::cpp_exception_error: return unexpected_exception; case execution_exception::system_error: return os_exception; case execution_exception::timeout_error: return os_timeout; case execution_exception::user_fatal_error: case execution_exception::system_fatal_error: return fatal_error; default: return unexpected_exception; } } return test_ok; } //____________________________________________________________________________// } // namespace unit_test } // namespace boost #include #endif // BOOST_TEST_UNIT_TEST_MONITOR_IPP_012205GER