From: Eli Zaretskii <eliz@gnu.org>
To: Helmut Eller <eller.helmut@gmail.com>, Robert Pluim <rpluim@gmail.com>
Cc: 64975@debbugs.gnu.org
Subject: bug#64975: 30.0.50; accept-process-output and async connect
Date: Sat, 05 Aug 2023 12:26:13 +0300 [thread overview]
Message-ID: <838rapu9fu.fsf@gnu.org> (raw)
In-Reply-To: <m2wmygdx7v.fsf@gmail.com> (message from Helmut Eller on Mon, 31 Jul 2023 15:31:00 +0200)
> From: Helmut Eller <eller.helmut@gmail.com>
> Date: Mon, 31 Jul 2023 15:31:00 +0200
>
> (ert-deftest async-connect ()
> (let* ((host 'local)
> (family 'ipv4)
> (port 57869)
> (server (make-network-process
> :name "server" :server t :noquery t :reuseaddr t
> :host host :service port :family family))
> (proc (make-network-process
> :name "async-connect" :nowait t
> :host host :service port :family family)))
> (should (eq (process-status proc) 'connect))
> (should (accept-process-output proc 2))
> (should (eq (process-status proc) 'open))))
>
> when executed with
> emacs --batch -Q -l async-connect.el -f ert-run-tests-batch-and-exit
>
> It seems that accept-process-output correctly updates the process-status
> but it forgets to break out of the loop.
>
> With the following change, the test passes:
Robert, any comments?
next prev parent reply other threads:[~2023-08-05 9:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-31 13:31 bug#64975: 30.0.50; accept-process-output and async connect Helmut Eller
2023-08-05 9:26 ` Eli Zaretskii [this message]
2023-08-08 9:10 ` Robert Pluim
2023-08-08 12:15 ` Eli Zaretskii
2023-08-08 12:32 ` Robert Pluim
2023-08-08 14:36 ` Helmut Eller
2023-08-08 15:16 ` Robert Pluim
2023-08-08 15:33 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=838rapu9fu.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64975@debbugs.gnu.org \
--cc=eller.helmut@gmail.com \
--cc=rpluim@gmail.com \
/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.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).