From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Commit 137b15a fails X02zlevi test
Date: Sat, 08 Feb 2014 14:45:55 -0800 [thread overview]
Message-ID: <140208144555.ZM16333@torch.brasslantern.com> (raw)
In-Reply-To: <140208121311.ZM14905@torch.brasslantern.com>
On Feb 8, 12:13pm, Bart Schaefer wrote:
} Subject: Commit 137b15a fails X02zlevi test
}
} Not sure if this is bad test data or if workers/32342 broke "print -z".
OK, it's neither of those. If I rearrange the tests to put that one
first, it works and the next test that begins with "comptesteval ..."
fails instead.
The problem stems from the same zpty used for all the tests, and there
is something about the "zletest" function that leaves the zpty in a
bad state for a subsequent "comptesteval". Oddly, two "zletest" calls
in a row do not encounter whatever situation this is.
For some reason, the command that ends "comptesteval", which is
. /tmp/comptest.$$
is being executed *again* at the beginning of zletest, which produces
an error such as
.: no such file or directory: /tmp/comptest.16194
I haven't figured out how to tell whether this means the comptest.$$
file is never read, or if it is read but the buffer is being cleared
when that error occurs and therefore is in the wrong state when the
actual test input is executed.
The only obvious difference between "comptesteval" and "zletest" is
that the former uses
zpty -w zsh ". $tmp"
where the latter uses
zpty -n -w zsh "$input"$'\C-M'
in which the ^M is supposed to invoke the zle-finish widget.
I note that the zle-finish widget uses "zle send-break" and then tries
to do "zle -R" after it. That won't work, "zle send-break" causes an
implicit return from the widget in which it is executed. But it ought
to reset ZLE to viins mode, even without the "zle -K main", so I remain
puzzled why the subsequent comptesteval would fail given that the first
one (before any zletest call) succeeds.
next prev parent reply other threads:[~2014-02-08 22:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-08 20:13 Bart Schaefer
2014-02-08 22:45 ` Bart Schaefer [this message]
2014-02-09 18:53 ` Bart Schaefer
2014-02-09 21:00 ` Peter Stephenson
2014-02-09 22:30 ` Oliver Kiddle
2014-02-11 7:37 ` Bart Schaefer
2014-02-13 5:49 ` Bart Schaefer
2014-02-13 9:32 ` Peter Stephenson
2014-02-13 16:17 ` Jun T.
2014-02-13 17:39 ` Bart Schaefer
2014-02-14 15:59 ` Jun T.
2014-02-15 1:42 ` Bart Schaefer
2014-02-15 17:07 ` Jun T.
2014-02-15 21:35 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=140208144555.ZM16333@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).