diff options
author | Tony Cook <tony@develop-help.com> | 2020-09-14 15:49:40 +1000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2021-01-06 17:39:52 +0000 |
commit | d2f68b387a1247703a3be515c67907131c97b6b5 (patch) | |
tree | 959a172c9cd96406c12e83ae61a88c243e6f4910 | |
parent | 6e48dfa8fc63a182a49aa7d935956f6d77d00e6b (diff) | |
download | perl-d2f68b387a1247703a3be515c67907131c97b6b5.tar.gz |
run_multiple_progs: allow fatal to be turned off too
in some cases we want to group a test that shouldn't croak with the
croak tests, in particular to catch regressions when we've
introduced a croak.
(cherry picked from commit dd4888cbd881ebd071701fbfef45812a8773a404)
-rw-r--r-- | t/test.pl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1316,6 +1316,10 @@ sub run_multiple_progs { elsif ($option eq 'fatal') { # perl should fail $fatal = 1; } + elsif ($option eq 'nonfatal') { + # used to turn off default fatal + $fatal = 0; + } else { die "$0: Unknown OPTION '$option'\n"; } |