summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2020-09-14 15:49:40 +1000
committerSteve Hay <steve.m.hay@googlemail.com>2021-01-06 17:39:52 +0000
commitd2f68b387a1247703a3be515c67907131c97b6b5 (patch)
tree959a172c9cd96406c12e83ae61a88c243e6f4910
parent6e48dfa8fc63a182a49aa7d935956f6d77d00e6b (diff)
downloadperl-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.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index c754090dde..60f185854f 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -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";
}