From: Paul Eggert Date: Mon, 20 May 2024 22:14:44 +0000 (-0700) Subject: stty: port test to Alpine Linux X-Git-Tag: v9.6~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afb6ba4d2ce8d3f8aedbe3f2653a20100cabcc2e;p=thirdparty%2Fcoreutils.git stty: port test to Alpine Linux * tests/stty/stty.sh: Port to Alpine Linux 3.20.0_rc1, whose musl implementation’s printf invokes ioctl on stdout, so --version does an ioctl. --- diff --git a/tests/stty/stty.sh b/tests/stty/stty.sh index cd28e8bf30..6aeb3f8b9e 100755 --- a/tests/stty/stty.sh +++ b/tests/stty/stty.sh @@ -87,7 +87,7 @@ strace -o log1 -e ioctl stty --version || fail=1 n_ioctl1=$(wc -l < log1) || framework_failure_ returns_ 1 strace -o log2 -e ioctl stty -blahblah || fail=1 n_ioctl2=$(wc -l < log2) || framework_failure_ -test "$n_ioctl1" = "$n_ioctl2" || fail=1 +test "$n_ioctl1" -ge "$n_ioctl2" || fail=1 # Ensure we wrap output appropriately for W in $(seq 80 90); do