From eea0eb972b02605a007e9e06dd12f912f3c294aa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 9 Feb 2025 09:44:59 -0800 Subject: [PATCH] test: unset PERL5OPT later, in parallel-tests-log-compiler-example.sh. * t/parallel-tests-log-compiler-example.sh: unset PERL5OPT just for the make check warning. --- t/parallel-tests-log-compiler-example.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/t/parallel-tests-log-compiler-example.sh b/t/parallel-tests-log-compiler-example.sh index 1307ad51a..f680c9187 100644 --- a/t/parallel-tests-log-compiler-example.sh +++ b/t/parallel-tests-log-compiler-example.sh @@ -37,10 +37,7 @@ LOG_COMPILER = ./wrapper-script AM_LOG_FLAGS = -d END -# intentionally reversed += operator to provoke warning; thus, -# explicitly unset PERL5OPT so that PERL5OPT=-Mwarnings=FATAL,all -# in the environment won't cause a fatal error. See ../HACKING. -unset PERL5OPT +# intentionally reversed += operator to provoke warning; see below. echo 'my $a =+ 2; exit (0);' > foo.pl echo 'import sys; sys.exit(0);' > bar.py : > baz @@ -58,7 +55,11 @@ $AUTOMAKE -a ./configure st=0 -$MAKE check || st=$? + +# Because we're intentionally generating a warning, we explicitly unset +# PERL5OPT so that PERL5OPT=-Mwarnings=FATAL,all in the environment +# won't cause a fatal error. See ../HACKING. +PERL5OPT= $MAKE check || st=$? cat foo.log cat bar.log cat baz.log -- 2.47.3