From d2f68b387a1247703a3be515c67907131c97b6b5 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 14 Sep 2020 15:49:40 +1000 Subject: 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) --- t/test.pl | 4 ++++ 1 file changed, 4 insertions(+) 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"; } -- cgit v1.2.1