]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
test: unset PERL5OPT later, in parallel-tests-log-compiler-example.sh.
authorKarl Berry <karl@freefriends.org>
Sun, 9 Feb 2025 17:44:59 +0000 (09:44 -0800)
committerKarl Berry <karl@freefriends.org>
Sun, 9 Feb 2025 17:44:59 +0000 (09:44 -0800)
* t/parallel-tests-log-compiler-example.sh: unset PERL5OPT
just for the make check warning.

t/parallel-tests-log-compiler-example.sh

index 1307ad51a65f49ce6496415ef6c7ca0f4767171e..f680c9187c458c75fc7c326d6136f4bb54b6dbbe 100644 (file)
@@ -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