]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stty: port test to Alpine Linux
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 May 2024 22:14:44 +0000 (15:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 May 2024 22:15:05 +0000 (15:15 -0700)
* 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

index cd28e8bf30fb457f93b1d8ad2ff4ffc85d6ae74e..6aeb3f8b9ec006eaf67f84ff28143840e9c30856 100755 (executable)
@@ -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