in reply to Re: Is prove's --ignore-exit flag incomplete or ignored?
in thread Is prove's --ignore-exit flag incomplete or ignored?
Thanks for answering, how's this:
$ cat exit.t use strict; use warnings; use Test::More tests => 1; is 1, 0, 'Tickety-boo'; exit 1;
which gives:
$ prove --failures --ignore-exit exit.t exit.t .. 1/1 not ok 1 - Tickety-boo # Failed test 'Tickety-boo' # at exit.t line 6. # got: '1' # expected: '0' # Looks like your test exited with 1 just after 1. exit.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests Test Summary Report ------------------- exit.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=1, Tests=1, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.07 cusr + 0.01 csys = 0.12 CPU) Result: FAIL
The only difference between your code and my version is that I have a failing test as well a non-zero exit status, and with that the "Dubious" message appears. Omitting the --ignore-exit flag doesn't change my output, so it's not clear that the flag is actually doing anything at all.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Is prove's --ignore-exit flag incomplete or ignored?
by kcott (Archbishop) on Dec 19, 2020 at 05:36 UTC | |
by songmaster (Beadle) on Dec 21, 2020 at 20:42 UTC |