Subject: | test failed count/percentage is wrong when dying mid-test (test included) |
I think the problem is in _dubious_return because it doesn't happen if the test does an exit(0) instead of exit(1)
add this to test_harness.t %samples
die_mid => {
total => {
bonus => 0,
max => 2,
'ok' => 0,
files => 1,
bad => 1,
good => 0,
tests => 1,
sub_skipped=> 0,
'todo' => 0,
skipped => 0,
},
failed => {
max => 2,
failed => 2,
canon => '1-2',
},
all_ok => 0,
},
and create t/sample_tests/die_mid:
print <<DUMMY_TEST;
1..2
not ok 1
DUMMY_TEST
exit 1; # exit because die() can be noisy