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.
This commit is contained in:
Paul Eggert committed 2024-05-20 15:15:05 -07:00
1 parent 52e024b7b7
commit afb6ba4d2c
1 file changed
+1 -1
+1 -1
View File
@@ -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