From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27438 invoked by alias); 21 Nov 2014 18:18:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33744 Received: (qmail 10669 invoked from network); 21 Nov 2014 18:18:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,RCVD_IN_BRBL_LASTEXT, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Confirming X02zlevi test failures From: "Jun T." In-Reply-To: <141120091803.ZM3693@torch.brasslantern.com> Date: Sat, 22 Nov 2014 03:18:05 +0900 Content-Transfer-Encoding: 7bit Message-Id: References: <141119085006.ZM18951@torch.brasslantern.com> <11014.1416438322@quattro> <141119222019.ZM2717@torch.brasslantern.com> <5A1A98B7-42E0-4EE1-9468-32E2D6434246@kba.biglobe.ne.jp> <141120091803.ZM3693@torch.brasslantern.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 50699 2014/11/21 02:18, Bart Schaefer 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'