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=e9477c8712a946b5ef88c5dddbdb3e3c40c7d0f7;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 5fea7e958b..4a41f67bae 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-20 Bruno Haible vasnwprintf tests: Add test of huge %ls arguments. diff --git a/tests/init.sh b/tests/init.sh index 237db02fb0..87e6557649 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"