]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix stty failure with serial control settings
authorPádraig Brady <P@draigBrady.com>
Mon, 7 Dec 2009 07:39:32 +0000 (07:39 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 8 Dec 2009 15:06:01 +0000 (15:06 +0000)
* tests/misc/stty: Don't check the serial control settings as
these are ignored by various Linux kernels.
Reported by Matthew Burgess.

tests/misc/stty

index cb3fee533a3b455d081028e8abe0925095de1859..63c055795bf127432d7746c28bc22044a588cacf 100755 (executable)
@@ -63,8 +63,10 @@ options=`stty -a | tr -s ';' '\n' | sed "s/^ //;$sed_del;s/-//g"`
 for opt in $options; do
   # `stty parenb' and `stty -parenb' fail with this message
   # stty: standard input: unable to perform all requested operations
-  # on Linux 2.2.0-pre4 kernels, so skip those tests.
-  test $opt = parenb && continue
+  # on Linux 2.2.0-pre4 kernels.  Also since around Linux 2.6.30
+  # other serial control settings give the same error. So skip them.
+  case $opt in parenb|parodd|cstopb|crtscts) continue;; esac
+
   stty $opt || fail=1
 
   # Likewise, `stty -cread' would fail, so skip that, too.