]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* tests/stty/basic-1: Work around an intermittent test failure
authorJim Meyering <jim@meyering.net>
Fri, 30 Jun 2006 10:31:42 +0000 (10:31 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 30 Jun 2006 10:31:42 +0000 (10:31 +0000)
on HP-UX 11.11.  Report and analysis from Bob Proulx.
http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475

ChangeLog
tests/stty/basic-1

index 88f6476a4bdd1173165c1c345878c00c6c002bd6..eba7d531cae2aad77e249c8f92f6b7aa91f66495 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-30  Jim Meyering  <jim@meyering.net>
+
+       * tests/stty/basic-1: Work around an intermittent test failure
+       on HP-UX 11.11.  Report and analysis from Bob Proulx.
+       http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475
+
 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        * NEWS: Support obsolete usages like "sort +1 -2" even when
index c53410f50a7299ed686fa4f5e3068a4a78b022e8..8cdc4599410a5b45eae9b2e1aa87e63aded2ce30 100755 (executable)
@@ -38,7 +38,10 @@ stty -raw -F no/such/file 2>/dev/null && fail=1
 stty -raw -a 2>/dev/null && fail=1
 
 # Build a list of all boolean options stty accepts on this system.
-options=`stty -a|tail -n +2|tr ';' '\n'|sed '/ = /d;s/^ //;s/-//g'`
+# Don't depend on terminal width.  Put each option on its own line,
+# remove all non-boolean ones, then remove any leading hyphens.
+sed_del='/^speed/d;/^rows/d;/^columns/d;/ = /d'
+options=`stty -a | tr -s ';' '\n' | sed "s/^ //;$sed_del;s/-//g"`
 
 # Take them one at a time, with and without the leading `-'.
 for opt in $options; do