From: Paul Eggert Date: Mon, 18 Sep 2006 20:34:50 +0000 (+0000) Subject: * tests/stty/row-col-1: Rewrite to avoid temporary file that is X-Git-Tag: v6.3~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46dd4b1a8ede10b94591d9302f92dc49d3f90838;p=thirdparty%2Fcoreutils.git * tests/stty/row-col-1: Rewrite to avoid temporary file that is sometimes left behind if the test is skipped or interrupted. --- diff --git a/ChangeLog b/ChangeLog index f2aea9cf09..8b32b4c1ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-09-18 Paul Eggert + * tests/stty/row-col-1: Rewrite to avoid temporary file that is + sometimes left behind if the test is skipped or interrupted. + * bootstrap (symlink_to_gnulib): New function. (cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib to copies-of-gnulib. diff --git a/tests/stty/row-col-1 b/tests/stty/row-col-1 index 926579b1b6..83d34a7706 100755 --- a/tests/stty/row-col-1 +++ b/tests/stty/row-col-1 @@ -59,9 +59,7 @@ NA LAST NA ' set $tests -saved_size=.saved-size - -stty size > $saved_size \ +saved_size=`stty size` && test -n "$saved_size" \ || { echo "$0: skipping this test: can't get window size" 1>&2; exit 77; exit; } @@ -84,7 +82,7 @@ while :; do shift; shift; shift done -stty `cat $saved_size|sed 's/ / columns /;s/^/rows /'` || exit 1 -rm -f $saved_size +set x $saved_size +stty rows $2 columns $3 || exit 1 exit $fail