From afb6ba4d2ce8d3f8aedbe3f2653a20100cabcc2e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 20 May 2024 15:14:44 -0700 Subject: [PATCH] stty: port test to Alpine Linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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. --- tests/stty/stty.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2