From: Bruno Haible Date: Thu, 20 Jun 2024 14:36:28 +0000 (+0200) Subject: test-framework-sh: Fix side effect on dfa tests (regression 2024-06-11). X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=bc1cba2e0e98966cf06c700e5edf7a5263d3d865;p=gnulib.git test-framework-sh: Fix side effect on dfa tests (regression 2024-06-11). * tests/init.sh (returns_): Silence the 'local is_tracing' assignment. --- diff --git a/ChangeLog b/ChangeLog index be7a484265..d4ca54fa31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-06-20 Bruno Haible + + test-framework-sh: Fix side effect on dfa tests (regression 2024-06-11). + * tests/init.sh (returns_): Silence the 'local is_tracing' assignment. + 2024-06-18 Bruno Haible copysignl tests: Avoid failure on Solaris 11.4. diff --git a/tests/init.sh b/tests/init.sh index 237db02fb0..c374e5f014 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -598,7 +598,7 @@ fi # returns_ 1 command ... || fail returns_ () { # Disable tracing so it doesn't interfere with stderr of the wrapped command - local is_tracing=`{ :; } 2>&1` + { local is_tracing=`{ :; } 2>&1`; } 2>/dev/null { set +x; } 2>/dev/null local exp_exit="$1"