mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-05 12:04:03 -07:00
keyboard-tests.el: Try and fix the failure on EMBA
* test/src/keyboard-tests.el (keyboard-sigint-to-quit): Fix a small race condition and avoid `sit-for` returning early.
This commit is contained in:
parent
ce3098752c
commit
ff96db93f2
1 changed files with 5 additions and 5 deletions
|
|
@ -92,11 +92,11 @@
|
||||||
`(,(expand-file-name invocation-name invocation-directory)
|
`(,(expand-file-name invocation-name invocation-directory)
|
||||||
"-Q" "--batch" "--eval"
|
"-Q" "--batch" "--eval"
|
||||||
,(prin1-to-string
|
,(prin1-to-string
|
||||||
`(progn (setq kill-emacs-on-sigint nil)
|
`(condition-case nil
|
||||||
(message "Ready!")
|
(progn (setq kill-emacs-on-sigint nil)
|
||||||
(condition-case nil
|
(message "Ready!")
|
||||||
(dotimes (_ 3) (sit-for 1))
|
(sleep-for 3))
|
||||||
(quit (message "%s" ,exit-msg)))))))))
|
(quit (message "%s" ,exit-msg))))))))
|
||||||
(while (progn (accept-process-output proc 1.0)
|
(while (progn (accept-process-output proc 1.0)
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(not (re-search-forward "Ready!" nil t)))
|
(not (re-search-forward "Ready!" nil t)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue