From 2056ec680ed9fedc6046ff9b3eb79b6efde19b08 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sun, 11 Oct 2026 21:39:33 +0100 Subject: [PATCH] check.sh: what dash says of a signal kept out of X.err dash prints "Floating point exception" etc. while a simple command's 2> is still in place, so 7 signal tests failed on CI (ubuntu, sh=dash). The program now runs in ( exec ... ), whose redirections are its own. --- diff --git a/test/check.sh b/test/check.sh index 0c778a1..530175e 100755 --- a/test/check.sh +++ b/test/check.sh @@ -35,8 +35,9 @@ if [ -f $dir/$name.args ]; then while IFS= read -r a; do set -- "$@" "$a"; done < $dir/$name.args fi - # in $(...), so that what the shell says of a signal goes nowhere - status=$( { $out/$name "$@" > $out/$name.out 2>$out/$name.err; echo $?; } 2>/dev/null ) + # in $(...), so that what the shell says of a signal goes nowhere; + # in ( ), since dash says it with the command's 2> still in place + status=$( { ( exec $out/$name "$@" ) > $out/$name.out 2>$out/$name.err; echo $?; } 2>/dev/null ) want=0 [ -f $dir/$name.status ] && want=$(cat $dir/$name.status) if ! cmp -s $out/$name.out $dir/$name.expect; then