Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Commit 137b15a fails X02zlevi test
(Sorry I've been too busy for testing recent patches.)
Today I did a few test with zsh-5.0.5-40-gba58bfe, and found that
X02zlevi.ztst always fails on Mac OS X (10.9.1) and FreeBSD 10.0.
All the test which use comptesteval seem to fail.
With the Bart's zpty_flush patch in 32377, it succeeds about 50%
on Mac but still fails 100% on FreeBSD.
On Both systems, the failure is at
comptesteval 'bindkey -a "^R" redo'
zletest $'123\C-_\e\C-r
and all the other tests pass.
(if I set ZTST_verbose=3 then the above test also succeeds always).
I don't know exactly what is causing this failure, but anyway replacing
^R with ^K (or some other keys) seems to work on both Mac and FreeBSD.
# I noticed that 'stty -a' shows 'reprint' is set to '^R',
# and if I change the comptesteval to
# comptesteval 'stty reprint "^K";bindkey -a "^R" redo'
# then the test always succeeds on Mac. But this doesn't work on FreeBSD;
# moreover, on Fedora20, X02zlevi.ztst alway succeeds but '^R' is also
# used for reprint. So this may not be related with the failure.
diff --git a/Test/X02zlevi.ztst b/Test/X02zlevi.ztst
index fe55d8a..60f878e 100644
--- a/Test/X02zlevi.ztst
+++ b/Test/X02zlevi.ztst
@@ -49,8 +49,8 @@
>BUFFER: z
>CURSOR: 1
- comptesteval 'bindkey -a "^R" redo'
- zletest $'123\C-_\e\C-r'
+ comptesteval 'bindkey -a "^K" redo'
+ zletest $'123\C-_\e\C-k'
0:undo in insert mode, redo in command
>BUFFER: 123
>CURSOR: 2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author