From: Karl Berry Date: Sun, 9 Feb 2025 17:44:59 +0000 (-0800) Subject: test: unset PERL5OPT later, in parallel-tests-log-compiler-example.sh. X-Git-Tag: v1.17.90~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eea0eb972b02605a007e9e06dd12f912f3c294aa;p=thirdparty%2Fautomake.git 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. --- 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