Ticket #7419: boost_test_support_multiple_test_runs.diff
File boost_test_support_multiple_test_runs.diff, 4.9 KB (added by , 10 years ago) |
---|
-
boost/test/impl/framework.ipp
346 346 delete static_cast<test_case const*>(tu_ptr); 347 347 } 348 348 } 349 349 350 void reset() 351 { 352 clear(); 353 m_master_test_suite = 0; 354 m_curr_test_case = INV_TEST_UNIT_ID; 355 m_next_test_case_id = MIN_TEST_CASE_ID; 356 m_next_test_suite_id = MIN_TEST_SUITE_ID; 357 m_test_in_progress = false; 358 } 359 350 360 void set_tu_id( test_unit& tu, test_unit_id id ) { tu.p_id.value = id; } 351 361 352 362 // test_tree_visitor interface implementation … … 637 647 } // namespace impl 638 648 639 649 // ************************************************************************** // 650 // ************** framework::reset ************** // 651 // ************************************************************************** // 652 653 void 654 reset() 655 { 656 reset_observers(); 657 s_frk_impl().reset(); 658 } 659 660 // ************************************************************************** // 640 661 // ************** framework::init ************** // 641 662 // ************************************************************************** // 642 663 643 664 void 644 665 init( init_unit_test_func init_func, int argc, char* argv[] ) 645 666 { 667 if( s_frk_impl().m_is_initialized ) 668 { 669 reset(); 670 } 671 646 672 runtime_config::init( argc, argv ); 647 673 648 674 // set the log level and format -
boost/test/impl/unit_test_parameters.ipp
152 152 namespace { 153 153 154 154 // framework parameters and corresponding command-line arguments 155 #ifdef BOOST_TEST_USE_QUALIFIED_COMMANDLINE_ARGUMENTS 156 std::string AUTO_START_DBG = "boost.test.auto_start_dbg"; 157 std::string BREAK_EXEC_PATH = "boost.test.break_exec_path"; 158 std::string BUILD_INFO = "boost.test.build_info"; 159 std::string CATCH_SYS_ERRORS = "boost.test.catch_system_errors"; 160 std::string COLOR_OUTPUT = "boost.test.color_output"; 161 std::string DETECT_FP_EXCEPT = "boost.test.detect_fp_exceptions"; 162 std::string DETECT_MEM_LEAKS = "boost.test.detect_memory_leaks"; 163 std::string LIST_CONTENT = "boost.test.list_content"; 164 std::string LOG_FORMAT = "boost.test.log_format"; 165 std::string LOG_LEVEL = "boost.test.log_level"; 166 std::string LOG_SINK = "boost.test.log_sink"; 167 std::string OUTPUT_FORMAT = "boost.test.output_format"; 168 std::string RANDOM_SEED = "boost.test.random"; 169 std::string REPORT_FORMAT = "boost.test.report_format"; 170 std::string REPORT_LEVEL = "boost.test.report_level"; 171 std::string REPORT_SINK = "boost.test.report_sink"; 172 std::string RESULT_CODE = "boost.test.result_code"; 173 std::string TESTS_TO_RUN = "boost.test.run_test"; 174 std::string SAVE_TEST_PATTERN = "boost.test.save_pattern"; 175 std::string SHOW_PROGRESS = "boost.test.show_progress"; 176 std::string USE_ALT_STACK = "boost.test.use_alt_stack"; 177 std::string WAIT_FOR_DEBUGGER = "boost.test.wait_for_debugger"; 178 #else 155 179 std::string AUTO_START_DBG = "auto_start_dbg"; 156 180 std::string BREAK_EXEC_PATH = "break_exec_path"; 157 181 std::string BUILD_INFO = "build_info"; … … 174 198 std::string SHOW_PROGRESS = "show_progress"; 175 199 std::string USE_ALT_STACK = "use_alt_stack"; 176 200 std::string WAIT_FOR_DEBUGGER = "wait_for_debugger"; 201 #endif 177 202 178 203 static const_string 179 204 parameter_2_env_var( const_string param_name ) … … 262 287 { 263 288 using namespace cla; 264 289 290 s_cla_parser.clear(); 291 265 292 try { 266 293 if( s_cla_parser.num_params() != 0 ) 267 294 s_cla_parser.reset(); -
boost/test/utils/runtime/cla/parser.hpp
128 128 void usage( out_stream& ostr ); 129 129 void help( out_stream& ostr ); 130 130 131 //clear 132 void clear(); 133 131 134 private: 132 135 argument const& valid_argument( cstring string_id ) const; 133 136 -
boost/test/utils/runtime/cla/parser.ipp
258 258 259 259 //____________________________________________________________________________// 260 260 261 BOOST_RT_PARAM_INLINE void 262 parser::clear() 263 { 264 m_parameters.clear(); 265 } 266 267 //____________________________________________________________________________// 268 261 269 } // namespace cla 262 270 263 271 } // namespace BOOST_RT_PARAM_NAMESPACE