]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
test: unset PERL5OPT for parallel-tests-log-compiler-example.sh.
authorKarl Berry <karl@freefriends.org>
Thu, 6 Feb 2025 23:37:58 +0000 (15:37 -0800)
committerKarl Berry <karl@freefriends.org>
Thu, 6 Feb 2025 23:37:58 +0000 (15:37 -0800)
* t/parallel-tests-log-compiler-example.sh: unset PERL5OPT
since the test expects a warning.

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

index fa8f97fcbe948b892bc7e4cc3096f08de0c8a341..1307ad51a65f49ce6496415ef6c7ca0f4767171e 100644 (file)
@@ -38,9 +38,10 @@ AM_LOG_FLAGS = -d
 END
 
 # intentionally reversed += operator to provoke warning; thus,
-# explicitly use warnings so that PERL5OPT=-Mwarnings=FATAL,all
-# in the environment won't be a fatal error.  See ../HACKING.
-echo 'use warnings; my $a =+ 2; exit (0);' > foo.pl
+# explicitly unset PERL5OPT so that PERL5OPT=-Mwarnings=FATAL,all
+# in the environment won't cause a fatal error.  See ../HACKING.
+unset PERL5OPT
+echo 'my $a =+ 2; exit (0);' > foo.pl
 echo 'import sys; sys.exit(0);' > bar.py
 : > baz