Subject: | todo subtest fails generate extraneous newlines in output |
Example test script:
---------------------------------------------------------------------
use Test::More;
$TODO++;
subtest a => sub { fail; pass; fail; pass; };
done_testing;
---------------------------------------------------------------------
Example output:
---------------------------------------------------------------------
marketequalizer:~# prove test.pl
test.pl ..
test.pl .. ok
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.04 cusr 0.00 csys = 0.06 CPU)
Result: PASS
---------------------------------------------------------------------
---------------------------------------------------------------------
marketequalizer:~# prove -v test.pl
test.pl ..
# Subtest: a
not ok 1
# Failed test at test.pl line 3.
ok 2
not ok 3
# Failed test at test.pl line 3.
ok 4
1..4
# Looks like you failed 2 tests of 4.
not ok 1 - a # TODO 1
# Failed (TODO) test 'a'
# at test.pl line 3.
1..1
ok
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.04 cusr 0.00 csys = 0.07 CPU)
Result: PASS
---------------------------------------------------------------------
---------------------------------------------------------------------
marketequalizer:~# perl test.pl
# Subtest: a
not ok 1
# Failed test at test.pl line 3.
ok 2
not ok 3
# Failed test at test.pl line 3.
ok 4
1..4
# Looks like you failed 2 tests of 4.
not ok 1 - a # TODO 1
# Failed (TODO) test 'a'
# at test.pl line 3.
1..1
marketequalizer:~#
---------------------------------------------------------------------
Probably related to this one in some manner: https://rt.cpan.org/Ticket/Display.html?id=115522