[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6311] run stty sane after each info test
From: |
Gavin D. Smith |
Subject: |
[6311] run stty sane after each info test |
Date: |
Fri, 05 Jun 2015 22:40:17 +0000 |
Revision: 6311
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6311
Author: gavin
Date: 2015-06-05 22:40:15 +0000 (Fri, 05 Jun 2015)
Log Message:
-----------
run stty sane after each info test
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/t/Init-inter.inc
trunk/info/t/Init-test.inc
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-06-05 15:37:16 UTC (rev 6310)
+++ trunk/ChangeLog 2015-06-05 22:40:15 UTC (rev 6311)
@@ -1,5 +1,11 @@
2015-06-05 Gavin Smith <address@hidden>
+ * info/t/Init-test.inc (cleanup): Run "stty sane" (interactive
+ tests only).
+ * info/t/Init-inter.inc: Check for stty program.
+
+2015-06-05 Gavin Smith <address@hidden>
+
* info/t/adjust-anchors.sh: Add comment about name of character
encoding. Export LC_ALL instead of LANG.
Modified: trunk/info/t/Init-inter.inc
===================================================================
--- trunk/info/t/Init-inter.inc 2015-06-05 15:37:16 UTC (rev 6310)
+++ trunk/info/t/Init-inter.inc 2015-06-05 22:40:15 UTC (rev 6311)
@@ -61,6 +61,9 @@
FINISHEDFIFO=t/`basename $0.finished`
+# See cleanup in Init-test.inc
+findprog stty && STTY=stty
+
# Create named pipes to communicate with pseudotty program, or quit.
rm -f $PIPEIN $PTY_TYPE # must already be defined
if findprog mknod; then # check for mknod to give a better error msg
Modified: trunk/info/t/Init-test.inc
===================================================================
--- trunk/info/t/Init-test.inc 2015-06-05 15:37:16 UTC (rev 6310)
+++ trunk/info/t/Init-test.inc 2015-06-05 22:40:15 UTC (rev 6311)
@@ -55,6 +55,9 @@
# Make sure that non-interactive operation works even if terminal is dumb
TERM=dumb; export TERM
+# For interactive tests, we try to set this in Init-inter.inc
+STTY=true
+
# Clean up if the test is interrupted, for example if the user types
# C-c, to avoid lingering child processes. Signal 2 is SIGINT.
trap cleanup 2
@@ -73,6 +76,12 @@
if test -n "$TIMED_OUT"; then
return 1
fi
+
+ # We do this because some versions of ksh93 (including that in
+ # Solaris 11) have a bug where a timed-out "read -t" can mess up
+ # the terminal settings, leading to characters not being echoed.
+ $STTY sane
+
#killall `basename $0` # see below
exit $RETVAL
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6311] run stty sane after each info test,
Gavin D. Smith <=