]> 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>
Thu, 20 Jun 2024 14:42:00 +0000 (16:42 +0200)
* tests/init.sh (returns_): Silence the 'local is_tracing' assignment.

ChangeLog
tests/init.sh

index 5fea7e958b3badbaba87f5964cdc1366f8f62dcd..4a41f67baec9b03bc29967a4cc4ad7217aa9b611 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-20  Bruno Haible  <bruno@clisp.org>
 
        vasnwprintf tests: Add test of huge %ls arguments.
index 237db02fb063e38d10ae32ff872019f764201205..87e65576493eb89515dd778c134ec6c0c3783823 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"