]> Savannah Git Hosting - gnulib.git/commitdiff
test-framework-sh: Fix side effect on dfa tests (regression 2024-06-11).
authorBruno Haible <bruno@clisp.org>
Thu, 20 Jun 2024 19:56:15 +0000 (21:56 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 20 Jun 2024 19:56:15 +0000 (21:56 +0200)
* tests/init.sh (returns_): Silence the 'local is_tracing' assignment
for real.

ChangeLog
tests/init.sh

index 4a41f67baec9b03bc29967a4cc4ad7217aa9b611..8e82912063b7dac1eb92bd8aad3bb7b1c040b10a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2024-06-20  Bruno Haible  <bruno@clisp.org>
 
+       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.
 
index 87e65576493eb89515dd778c134ec6c0c3783823..c374e5f01489ae956f748bd8ff7f1a8d8a219442 100644 (file)
@@ -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"