Subject: | tests that died show as passed |
Tests that die, either via "die" or BAIL_OUT show up as passing.
Example test script:
use Test::More tests => 2;
ok(1+2, 'math');
die;
is(3+4,7, 'math2');
When I run this via prove, I get the following:
t/test.t .. 1/2 Died at t/test.t line 8.
# Looks like you planned 2 tests but ran 1.
# Looks like your test exited with 255 just after 1.
t/test.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/2 subtests
Test Summary Report
-------------------
t/test.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 2 tests but ran 1.
Files=1, Tests=1, 0 wallclock secs ( 0.06 usr 0.00 sys + 0.04 cusr 0.00 csys = 0.10 CPU)
Result: FAIL
Wen running prove and uploading the results to smolder via smolder_smoke_signal, it shows
up on Smolder as having passed.