|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53069 - trunk/boost/test/impl
From: gennadiy.rozental_at_[hidden]
Date: 2009-05-17 03:39:03
Author: rogeeff
Date: 2009-05-17 03:39:03 EDT (Sun, 17 May 2009)
New Revision: 53069
URL: http://svn.boost.org/trac/boost/changeset/53069
Log:
store string to prevent going out of scope
Text files modified:
trunk/boost/test/impl/unit_test_parameters.ipp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
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 2009-05-17 03:39:03 EDT (Sun, 17 May 2009)
@@ -350,7 +350,9 @@
const_string
test_to_run()
{
- return retrieve_parameter( TESTS_TO_RUN, s_cla_parser, s_empty );
+ static std::string s_test_to_run = retrieve_parameter( TESTS_TO_RUN, s_cla_parser, s_empty );
+
+ return s_test_to_run;
}
//____________________________________________________________________________//
@@ -358,7 +360,9 @@
const_string
break_exec_path()
{
- return retrieve_parameter( BREAK_EXEC_PATH, s_cla_parser, s_empty );
+ static std::string s_break_exec_path = retrieve_parameter( BREAK_EXEC_PATH, s_cla_parser, s_empty );
+
+ return s_break_exec_path;
}
//____________________________________________________________________________//
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