]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure on FreeBSD systems
authorPádraig Brady <P@draigBrady.com>
Tue, 30 Jun 2015 13:30:57 +0000 (14:30 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 1 Jul 2015 11:27:29 +0000 (12:27 +0100)
* tests/misc/stty.sh: FreeBSD returns ENOTTY for
the TIOCEXT ioctl, so just avoid this option for now.

tests/misc/stty.sh

index 5c2575522d4c4be9e4e101434f21e8ca0f91b2d9..5e39b72e576d00705ec2056088397226c57eb16f 100755 (executable)
@@ -57,6 +57,10 @@ for opt in $options; do
     cstopb|crtscts|cdtrdsr|icanon) continue;;
   esac
 
+  # This is listed as supported on FreeBSD
+  # but the ioctl returns ENOTTY.
+  test $opt = extproc && continue
+
   stty $opt || fail=1
 
   # Likewise, 'stty -cread' would fail, so skip that, too.