diff options
author | Tony Cook <tony@develop-help.com> | 2020-09-14 15:49:40 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2020-11-04 04:26:48 +0000 |
commit | dd4888cbd881ebd071701fbfef45812a8773a404 (patch) | |
tree | d46c6a5bf22282e50e858dfd5ca5018bcae8401a /t | |
parent | 2551d0b1e1ebb2b6baef8d812bfe90fce0aa042a (diff) | |
download | perl-dd4888cbd881ebd071701fbfef45812a8773a404.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.
Diffstat (limited to 't')
-rw-r--r-- | t/test.pl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1332,6 +1332,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"; } |