tests: avoid stty icanon issues on some platforms
authorPádraig Brady <P@draigBrady.com>
Thu, 5 Jan 2012 15:31:50 +0000 (15:31 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 5 Jan 2012 15:31:50 +0000 (15:31 +0000)
* tests/misc/stty: Exclude 'icanon' for the list to check,
as it's problematic on ppc*|sparc* platforms.

tests/misc/stty

index 5bef0e8..689fb8d 100755 (executable)
@@ -62,7 +62,9 @@ for opt in $options; do
   # stty: standard input: unable to perform all requested operations
   # 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
+  # Also on ppc*|sparc* glibc platforms 'icanon' gives the same error.
+  # See: http://debbugs.gnu.org/7228#14
+  case $opt in parenb|parodd|cstopb|crtscts|icanon) continue;; esac
 
   stty $opt || fail=1