about summary refs log tree commit diff
path: root/Test/comptest
diff options
context:
space:
mode:
authorJun T <takimoto-j@kba.biglobe.ne.jp>2014-11-25 22:48:53 +0100
committerOliver Kiddle <opk@zsh.org>2014-11-25 22:49:14 +0100
commitc4110f7f4eac347fdbce71c286659a77beb138f7 (patch)
tree1f842821a3e8151e6bc54d409588bf7ca1b295c6 /Test/comptest
parentfeda07c641b865c8913e3fc34f28ad88f2d6da7e (diff)
downloadzsh-c4110f7f4eac347fdbce71c286659a77beb138f7.tar.gz
zsh-c4110f7f4eac347fdbce71c286659a77beb138f7.tar.xz
zsh-c4110f7f4eac347fdbce71c286659a77beb138f7.zip
33769: workaround for KEYTIMEOUT to work from test
cases on Darwin and FreeBSD
Diffstat (limited to 'Test/comptest')
-rw-r--r--Test/comptest4
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/comptest b/Test/comptest
index c67237a9a..1f4dac682 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -34,7 +34,7 @@ comptestinit () {
 "fpath=( $fpath )" \
 "bindkey -$comptest_keymap" \
 'LISTMAX=10000000
-stty 38400 columns 80 rows 24 werase undef tabs
+stty 38400 columns 80 rows 24 tabs -icanon -iexten
 TERM=vt100
 KEYTIMEOUT=1
 setopt zle
@@ -162,9 +162,9 @@ comptest () {
 zletest () {
   local first=0
   for input; do
+    zpty_flush Before zletest
     # sleep for $KEYTIMEOUT
     (( first++ )) && read -t 0.011 -k 1 < /dev/null
-    # zpty_flush Before zletest
     zpty -n -w zsh "$input"
   done
   zpty -n -w zsh $'\C-X'