summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2020-09-14 15:49:40 +1000
committerTony Cook <tony@develop-help.com>2020-11-04 04:26:48 +0000
commitdd4888cbd881ebd071701fbfef45812a8773a404 (patch)
treed46c6a5bf22282e50e858dfd5ca5018bcae8401a /t
parent2551d0b1e1ebb2b6baef8d812bfe90fce0aa042a (diff)
downloadperl-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.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index 2b0554a176..8f58447d0f 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -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";
}