Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Confirming X02zlevi test failures



2014/11/21 02:18, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> I begin to suspect that what needs to happen is that zpty needs to be a
> lot more aggressive internally about consuming (and buffering up) the
> slave output ...

If I add 'zpty_flush' before 'zpty -w', then the test succeeds on my Mac
without 'bindkey -r "\e~"'; but it doesn't work on FreeBSD.

On Mac, the zpty_flush must be in the 'for input' loop, and before
the 'read -t', as in the patch below (for the 1st hunk, see my previous
post, 33741).



diff --git a/Test/comptest b/Test/comptest
index c67237a..1f4dac6 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'





Messages sorted by: Reverse Date, Date, Thread, Author