id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8559,Impossible to run single test case if name contains whitespace,Kamil.Witecki@…,Gennadiy Rozental,"When using boost test with template based test cases it is possible that name create will contain whitespace (all const arguments, rest up to typeid(T).name). For such a name it is impossible to run test case due to bug in library related to parsing of command line arguments assuming ' ' as a separator and cutting name of test case in place of space, even if properly enclosed in quotes in command line. Simple workaround would be to replace all space characters in name of test case with different one ('_'?). Resolution of https://svn.boost.org/trac/boost/ticket/3384 would also solve that problem as well. {{{ kamilwitecki@laney:~/projects/c++/boosts_test_bug$ cat main.cpp }}} {{{#!cpp #define BOOST_TEST_MAIN 1 #include #include #include typedef boost::mpl::list test_types; BOOST_AUTO_TEST_CASE_TEMPLATE( my_test, T, test_types ) { BOOST_CHECK_EQUAL( sizeof(T), (unsigned)0 ); } }}} {{{ kamilwitecki@laney:~/projects/c++/boosts_test_bug$ g++ main.cpp -lboost_unit_test_framework && ./a.out }}} {{{ Running 2 test cases... main.cpp(11): error in ""my_test"": check sizeof(T) == (unsigned)0 failed [4 != 0] main.cpp(11): error in ""my_test"": check sizeof(T) == (unsigned)0 failed [4 != 0] *** 2 failures detected in test suite ""Master Test Suite"" }}} {{{ kamilwitecki@laney:~/projects/c++/boosts_test_bug$ ./a.out -t ""my_test"" }}} {{{ Running 1 test case... main.cpp(11): error in ""my_test"": check sizeof(T) == (unsigned)0 failed [4 != 0] *** 1 failure detected in test suite ""Master Test Suite"" }}} {{{ kamilwitecki@laney:~/projects/c++/boosts_test_bug$ ./a.out -t ""my_test"" }}} {{{ Test setup error: no test cases matching filter kamilwitecki@laney:~/projects/c++/boosts_test_bug$ }}}",Bugs,closed,Boost 1.59.0,test,Boost Development Trunk,Problem,fixed,,