]> 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 14:36:28 +0000 (16:36 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Jun 2024 22:31:57 +0000 (00:31 +0200)
* tests/init.sh (returns_): Silence the 'local is_tracing' assignment.

ChangeLog
tests/init.sh

index be7a484265139c4ea595bd7dc02301c06c42526b..d4ca54fa31ca90a791b742eb7e4928c964bd69ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2024-06-18  Bruno Haible  <bruno@clisp.org>
 
        copysignl tests: Avoid failure on Solaris 11.4.
index 237db02fb063e38d10ae32ff872019f764201205..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`
+  { local is_tracing=`{ :; } 2>&1`; } 2>/dev/null
   { set +x; } 2>/dev/null
 
   local exp_exit="$1"