ill-formed XML in boost::unit_test logger

Unit testing library creates invalid XML when asked about XML logging output, like this: --------------------------------------- <TestSuite name="TaskQueue tests"> </TestSuite="TaskQueue tests"> --------------------------------------- This is a trivial 'missing braces' bug which can be fixed by the patching libs/test/src/supplied_log_formatters.cpp. Patch is attached. -- Mikhail Gusarov ICQ UIN: 111575219 JID dottedmag@jabber.ru --- supplied_log_formatters.cpp.old 2005-01-17 17:29:51.000000000 +0600 +++ supplied_log_formatters.cpp 2005-01-17 17:31:13.000000000 +0600 @@ -203,8 +203,9 @@ output << (in_out ? "<" : "</") << ( tc.p_type ? "TestCase" : "TestSuite" ); - if( in_out ) + if( in_out ) { output << " name"; print_attr_value( output, tc.p_name ); + } output << ">";
participants (2)
-
Gennadiy Rozental
-
Mikhail Gusarov