summaryrefslogtreecommitdiff
path: root/tests/misc/stty
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-12-07 07:39:32 +0000
committerPádraig Brady <P@draigBrady.com>2009-12-08 15:06:01 +0000
commitdcff25a925ced5a9d44e71178f6d60429e31dc50 (patch)
tree8440b11554d8d5471bc990ccf2ec48d9a5c7e5d6 /tests/misc/stty
parent7a2b0b8f660a618aaf15667bf111e7ee177914c9 (diff)
downloadcoreutils-dcff25a925ced5a9d44e71178f6d60429e31dc50.tar.xz
tests: fix stty failure with serial control settings
* tests/misc/stty: Don't check the serial control settings as these are ignored by various Linux kernels. Reported by Matthew Burgess.
Diffstat (limited to 'tests/misc/stty')
-rwxr-xr-xtests/misc/stty6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/misc/stty b/tests/misc/stty
index cb3fee533..63c055795 100755
--- a/tests/misc/stty
+++ b/tests/misc/stty
@@ -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.