[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6312] synchronize in index-apropos.sh
From: |
Gavin D. Smith |
Subject: |
[6312] synchronize in index-apropos.sh |
Date: |
Sat, 06 Jun 2015 14:08:37 +0000 |
Revision: 6312
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6312
Author: gavin
Date: 2015-06-06 14:08:36 +0000 (Sat, 06 Jun 2015)
Log Message:
-----------
synchronize in index-apropos.sh
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/t/index-apropos.sh
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-06-05 22:40:15 UTC (rev 6311)
+++ trunk/ChangeLog 2015-06-06 14:08:36 UTC (rev 6312)
@@ -1,3 +1,8 @@
+2015-06-06 Gavin Smith <address@hidden>
+
+ * info/t/index-apropos.sh: Wait for 'index-apropos' command to
+ finish before we sent more key strokes.
+
2015-06-05 Gavin Smith <address@hidden>
* info/t/Init-test.inc (cleanup): Run "stty sane" (interactive
Modified: trunk/info/t/index-apropos.sh
===================================================================
--- trunk/info/t/index-apropos.sh 2015-06-05 22:40:15 UTC (rev 6311)
+++ trunk/info/t/index-apropos.sh 2015-06-06 14:08:36 UTC (rev 6312)
@@ -23,7 +23,23 @@
# Type "M-x index-apropos", look for "link" in indices, select first
# result. Then type "i" followed by <TAB> to check the indices in the
# file are still there.
-printf '\033xindex-apropos\rlink\r\t\ri\t\x07q' >$PTY_TYPE
+
+printf '\033xindex-apropos\rlink\rD' >$PTY_TYPE
+
+# Wait for the M-x index-apropos to finish. If we don't do this,
+# ginfo sometimes doesn't exit, and is timed out. We are unsure why
+# but it could be because C-g is interpreted differently while this
+# command is running.
+echo 'waiting for index-apropos to finish...' >&2
+
+# Synchronize
+while ! test -f $GINFO_OUTPUT ; do sleep 1 ; done
+echo ...synchronized >&2
+cat $GINFO_OUTPUT >&2
+rm -f $GINFO_OUTPUT
+
+printf '\t\ri\t\x07q' >$PTY_TYPE
+
. $t/Timeout-test.inc
cleanup
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6312] synchronize in index-apropos.sh,
Gavin D. Smith <=