mirror of
https://github.com/zsh-users/zsh
synced 2024-10-14 11:53:24 +00:00
34774: fix %prep and use read from a no-op pipe to force wait for the timeout
This commit is contained in:
parent
13bad92fd8
commit
158484941a
|
@ -1,3 +1,8 @@
|
|||
2015-03-25 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 34774: Test/W01history.ztst, Test/comptest: fix %prep and use
|
||||
read from a no-op pipe to force wait for the timeout
|
||||
|
||||
2015-03-23 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 34772: Test/W01history.ztst, Test/comptest: add new test
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
%prep
|
||||
|
||||
[[ -t 0 ]] && print -u $ZTST_fd History tests write to /dev/tty
|
||||
if [[ -t 0 ]]; then print -u $ZTST_fd History tests write to /dev/tty; fi
|
||||
|
||||
%test
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ zletest () {
|
|||
for input; do
|
||||
# zpty_flush Before zletest
|
||||
# sleep for $KEYTIMEOUT
|
||||
(( first++ )) && read -t 0.011 -u 0 -k 1 < /dev/null
|
||||
(( first++ )) && { sleep 2 & } | read -t 0.011 -u 0 -k 1
|
||||
zpty -n -w zsh "$input"
|
||||
done
|
||||
zpty -n -w zsh $'\C-X'
|
||||
|
|
Loading…
Reference in a new issue