Boost logo

Boost-Commit :

From: gennadiy.rozental_at_[hidden]
Date: 2007-10-14 14:58:05


Author: rogeeff
Date: 2007-10-14 14:58:05 EDT (Sun, 14 Oct 2007)
New Revision: 40025
URL: http://svn.boost.org/trac/boost/changeset/40025

Log:
2 new command line arguments (yet unused):
--auto_start_dbg
--use_alt_stack
Text files modified:
   trunk/boost/test/detail/unit_test_parameters.hpp | 20 +-------------
   trunk/boost/test/impl/unit_test_parameters.ipp | 53 ++++++++++++++++++++++++---------------
   2 files changed, 34 insertions(+), 39 deletions(-)

Modified: trunk/boost/test/detail/unit_test_parameters.hpp
==============================================================================
--- trunk/boost/test/detail/unit_test_parameters.hpp (original)
+++ trunk/boost/test/detail/unit_test_parameters.hpp 2007-10-14 14:58:05 EDT (Sun, 14 Oct 2007)
@@ -43,6 +43,8 @@
 bool BOOST_TEST_DECL show_build_info();
 bool BOOST_TEST_DECL show_progress();
 bool BOOST_TEST_DECL catch_sys_errors();
+bool BOOST_TEST_DECL auto_start_dbg();
+bool BOOST_TEST_DECL use_alt_stack();
 output_format BOOST_TEST_DECL report_format();
 output_format BOOST_TEST_DECL log_format();
 long BOOST_TEST_DECL detect_memory_leaks();
@@ -62,24 +64,6 @@
 // Revision History :
 //
 // $Log$
-// Revision 1.24 2006/11/13 20:03:48 jhunold
-// Added missing export declarations.
-//
-// Revision 1.23 2006/01/30 07:29:49 rogeeff
-// split memory leaks detection API in two to get more functions with better defined roles
-//
-// Revision 1.22 2005/12/14 04:58:30 rogeeff
-// new parameter --break_exec_path introduced
-//
-// Revision 1.21 2005/04/05 06:11:37 rogeeff
-// memory leak allocation point detection\nextra help with _WIN32_WINNT
-//
-// Revision 1.20 2005/02/21 10:18:30 rogeeff
-// random cla support
-//
-// Revision 1.19 2005/02/20 08:27:06 rogeeff
-// This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
-//
 // ***************************************************************************
 
 #endif // BOOST_TEST_UNIT_TEST_PARAMETERS_HPP_071894GER

Modified: trunk/boost/test/impl/unit_test_parameters.ipp
==============================================================================
--- trunk/boost/test/impl/unit_test_parameters.ipp (original)
+++ trunk/boost/test/impl/unit_test_parameters.ipp 2007-10-14 14:58:05 EDT (Sun, 14 Oct 2007)
@@ -58,6 +58,8 @@
 literal_string BUILD_INFO = "BOOST_TEST_BUILD_INFO";
 literal_string SHOW_PROGRESS = "BOOST_TEST_SHOW_PROGRESS";
 literal_string CATCH_SYS_ERRORS = "BOOST_TEST_CATCH_SYSTEM_ERRORS";
+literal_string AUTO_START_DBG = "BOOST_TEST_AUTO_START_DBG";
+literal_string USE_ALT_STACK = "BOOST_TEST_USE_ALT_STACK";
 literal_string REPORT_FORMAT = "BOOST_TEST_REPORT_FORMAT";
 literal_string LOG_FORMAT = "BOOST_TEST_LOG_FORMAT";
 literal_string OUTPUT_FORMAT = "BOOST_TEST_OUTPUT_FORMAT";
@@ -74,6 +76,8 @@
 bool s_show_build_info;
 bool s_show_progress;
 bool s_catch_sys_errors;
+bool s_auto_start_dbg;
+bool s_use_alt_stack;
 output_format s_report_format;
 output_format s_log_format;
 long s_detect_mem_leaks;
@@ -95,6 +99,8 @@
         BUILD_INFO , "--build_info",
         SHOW_PROGRESS , "--show_progress",
         CATCH_SYS_ERRORS , "--catch_system_errors",
+ AUTO_START_DBG , "--auto_start_dbg",
+ USE_ALT_STACK , "--use_alt_stack",
         REPORT_FORMAT , "--report_format",
         LOG_FORMAT , "--log_format",
         OUTPUT_FORMAT , "--output_format",
@@ -198,6 +204,7 @@
     s_show_build_info = retrieve_framework_parameter( BUILD_INFO, argc, argv ) == "yes";
     s_show_progress = retrieve_framework_parameter( SHOW_PROGRESS, argc, argv ) == "yes";
     s_catch_sys_errors = retrieve_framework_parameter( CATCH_SYS_ERRORS, argc, argv ) != "no";
+ s_use_alt_stack = retrieve_framework_parameter( USE_ALT_STACK, argc, argv ) != "no";
     s_tests_to_run = retrieve_framework_parameter( TESTS_TO_RUN, argc, argv );
     s_exec_path_to_break= retrieve_framework_parameter( BREAK_EXEC_PATH, argc, argv );
 
@@ -218,6 +225,14 @@
 
     const_string ml_str = retrieve_framework_parameter( DETECT_MEM_LEAK, argc, argv );
     s_detect_mem_leaks = ml_str.is_empty() ? 1 : interpret_long( ml_str );
+
+ const_string dbg = retrieve_framework_parameter( AUTO_START_DBG, argc, argv );
+
+ if( dbg.is_empty() || dbg == "no" )
+ s_auto_start_dbg = false;
+ else {
+ s_auto_start_dbg = true;
+ }
 }
 
 //____________________________________________________________________________//
@@ -294,6 +309,22 @@
 
 //____________________________________________________________________________//
 
+bool
+auto_start_dbg()
+{
+ return s_auto_start_dbg;
+}
+
+//____________________________________________________________________________//
+
+bool
+use_alt_stack()
+{
+ return s_use_alt_stack;
+}
+
+//____________________________________________________________________________//
+
 output_format
 report_format()
 {
@@ -340,27 +371,7 @@
 // Revision History :
 //
 // $Log$
-// Revision 1.10 2006/01/30 07:29:49 rogeeff
-// split memory leaks detection API in two to get more functions with better defined roles
-//
-// Revision 1.9 2005/12/14 05:38:47 rogeeff
-// new parameter break_exec_path() is introduced
-//
-// Revision 1.8 2005/05/08 08:55:09 rogeeff
-// typos and missing descriptions fixed
-//
-// Revision 1.7 2005/04/05 07:23:21 rogeeff
-// restore default
-//
-// Revision 1.6 2005/04/05 06:11:37 rogeeff
-// memory leak allocation point detection\nextra help with _WIN32_WINNT
-//
-// Revision 1.5 2005/02/21 10:12:22 rogeeff
-// Support for random order of test cases implemented
-//
-// Revision 1.4 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_PARAMETERS_IPP_012205GER


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk