[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rewrite tests/stty/row-col-1 to avoid creating temp file
From: |
Paul Eggert |
Subject: |
rewrite tests/stty/row-col-1 to avoid creating temp file |
Date: |
Mon, 18 Sep 2006 13:36:40 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
I noticed that "make check" left behind a file tests/stty/.saved_size,
because I ran it under GNU Emacs on Solaris 8 and the test is skipped
in that case. I installed this to fix the little problem:
2006-09-18 Paul Eggert <address@hidden>
* tests/stty/row-col-1: Rewrite to avoid temporary file that is
sometimes left behind if the test is skipped or interrupted.
--- tests/stty/row-col-1 17 Aug 2006 19:58:37 -0000 1.12
+++ tests/stty/row-col-1 18 Sep 2006 20:34:44 -0000
@@ -59,9 +59,7 @@
'
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 @@
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- rewrite tests/stty/row-col-1 to avoid creating temp file,
Paul Eggert <=