id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 10317,boost::test corrupts contents of argv if a paramter contains whitespace,Andrew Marshall ,Raffi Enficiaud," command line arguments containing spaces are corrupted by the test framework's internal command line parser. This is a problem if passing additional arguments to the test executable containing, for example, paths with spaces. Compile and run the following with the argument ""root\\foo bar\\file.txt"" {{{#!cpp #include #include using namespace boost::test; void command_line_parser_preserves_whitespace(const std::string & after) { // this will fail as after = ""root\\foo"" BOOST_REQUIRE_EQUAL(std::string(""root\\foo bar\\file.txt"", after); } bool init_function() { framework::master_test_suite(). add( BOOST_TEST_CASE( boost::bind( &command_line_parser_preserves_whitespace, std::string path(framework::master_test_suite.path().argv[1]) ) ) ) return true; } int main( int argc, char* argv[] ) { return ::boost::unit_test::unit_test_main( &init_function, argc, argv ); } }}}",Bugs,closed,Boost 1.60.0,test,Boost 1.55.0,Problem,fixed,,