Opened 18 years ago

Closed 17 years ago

#381 closed Bugs (None)

Bad XML format outpout

Reported by: nobody Owned by: beman_dawes
Milestone: Component: test
Version: None Severity:
Keywords: Cc:

Description

IN FILE : 
boost_1_32_0\libs\test\src\supplied_log_formatters.cpp
IN FUNCTION : xml_log_formatter::track_test_case_scope

Missing accodance in test…


void xml_log_formatter::track_test_case_scope(
std::ostream& output, test_case const& tc, bool in_out )
{
    if( !in_out )
        m_indent -= 2;

    print_indent( output );

    output << (in_out ? "<" : "</") << ( tc.p_type ?
"TestCase" : "TestSuite" );

    // HERE MISSING ORIGINAL CODE : MISSING ‘{‘ !!
    //if( in_out )
    //    output << " name";  print_attr_value( output,
tc.p_name );

    // Patch 
    if( in_out ) {
      output << " name";  print_attr_value( output,
tc.p_name );
    }

    output << ">";

    if( in_out )
        m_indent += 2;
}



Change History (2)

comment:1 by mclow, 17 years ago

Logged In: YES 
user_id=131412

The file "supplied log formatters" is not used in anymore (so says Gennadiy, 
on 25-Oct-2005)

comment:2 by mclow, 17 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.