bleargh45 / TAP-Formatter-JUnit

Harness output delegate for JUnit output
https://metacpan.org/release/TAP-Formatter-JUnit/
3 stars 6 forks source link

t/formatter.t fails since Test-Harness-3.45_01: t/data/tests/bailout: junk after document element at line 17, column 13, byte 381 #15

Open ppisar opened 1 year ago

ppisar commented 1 year ago

After upgrading Test-Harness from 3.44 to 3.46 t/formatter.t fails like this:

$ perl -I /tmp/Test-Harness/lib  -Ilib t/formatter.t
1..22
ok 1 - t/data/tests/bad_chars

not ok 2 - t/data/tests/bailout

#   Failed test 't/data/tests/bailout'
#   at t/formatter.t line 54.
# During compare:
# junk after document element at line 17, column 13, byte 381
# GOT: <testsuites>
#   <testsuite errors="0"
#              failures="0"
#              name="data_tests_bailout"
#              tests="5">
#     <testcase name="1"></testcase>
#     <testcase name="2"></testcase>
#     <testcase name="3"></testcase>
#     <system-out><![CDATA[1..5
# ok 1
# ok 2
# ok 3
# Bail out!  GERONIMMMOOOOOO!!!
# ]]></system-out>
#     <system-err></system-err>
#   </testsuite>
# </testsuites><testsuites>
#   <testsuite errors="0"
#              failures="0"
#              name="data_tests_bailout"
#              tests="5">
#     <testcase name="1"></testcase>
#     <testcase name="2"></testcase>
#     <testcase name="3"></testcase>
#     <system-out></system-out>
#     <system-err></system-err>
#   </testsuite>
# </testsuites>

This is triggered by this Test-Harness commit https://github.com/Perl-Toolchain-Gang/Test-Harness/commit/95550966d4fe898921754f4140a07b82fe65afc0. It looks like a deliberate change.

pghmcfc commented 3 months ago

Seems to be fixed via https://github.com/Perl-Toolchain-Gang/Test-Harness/pull/127 in Test-Harness 3.50.