From: Bruno Haible Date: Thu, 20 Jun 2024 19:56:15 +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=7b8fe0cfbde9a47a8daec02c89623f42f06e8b74;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 for real. --- diff --git a/ChangeLog b/ChangeLog index 4a41f67bae..8e82912063 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 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 + for real. + 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/tests/init.sh b/tests/init.sh index 87e6557649..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` 2>/dev/null + { local is_tracing=`{ :; } 2>&1`; } 2>/dev/null { set +x; } 2>/dev/null local exp_exit="$1"