automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: test: unset PERL5OPT later, in


From: Karl Berry
Subject: [automake-commit] branch master updated: test: unset PERL5OPT later, in parallel-tests-log-compiler-example.sh.
Date: Sun, 09 Feb 2025 12:45:10 -0500

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=eea0eb972b02605a007e9e06dd12f912f3c294aa

The following commit(s) were added to refs/heads/master by this push:
     new eea0eb972 test: unset PERL5OPT later, in 
parallel-tests-log-compiler-example.sh.
eea0eb972 is described below

commit eea0eb972b02605a007e9e06dd12f912f3c294aa
Author: Karl Berry <karl@freefriends.org>
AuthorDate: Sun Feb 9 09:44:59 2025 -0800

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]