1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-12 10:22:38 +02:00

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
2024-05-20 15:14:44 -07:00
parent 52e024b7b7
commit afb6ba4d2c

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