From 40d8bb71391ab4dfe0fec0078a1aa6e83be07ce2 Mon Sep 17 00:00:00 2001 From: Gennadiy Rozental Date: Tue, 7 Jul 2015 20:57:03 -0400 Subject: [PATCH] disable break_exec_path --- include/boost/test/impl/unit_test_parameters.ipp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/boost/test/impl/unit_test_parameters.ipp b/include/boost/test/impl/unit_test_parameters.ipp index ad1f8eda..0155c3c0 100644 --- a/include/boost/test/impl/unit_test_parameters.ipp +++ b/include/boost/test/impl/unit_test_parameters.ipp @@ -258,6 +258,14 @@ retrieve_parameter( const_string parameter_name, cla::parser const& s_cla_parser //____________________________________________________________________________// +void +disable_use( cla::parameter const&, std::string const& ) +{ + BOOST_TEST_SETUP_ASSERT( false, "parameter break_exec_path is disabled in this release" ); +} + +//____________________________________________________________________________// + } // local namespace void @@ -275,7 +283,8 @@ init( int& argc, char** argv ) cla::description = "Automatically starts debugger if system level error (signal) occurs") << cla::named_parameter( BREAK_EXEC_PATH ) - (cla::prefix = "--",cla::separator = "=",cla::guess_name,cla::optional, - cla::description = "For the exception safety testing allows to break at specific execution path") + cla::description = "For the exception safety testing allows to break at specific execution path", + cla::handler = &disable_use) << cla::dual_name_parameter( BUILD_INFO + "|i" ) - (cla::prefix = "--|-",cla::separator = "=| ",cla::guess_name,cla::optional, cla::description = "Shows library build information" )