GNU bug report logs - #64975
30.0.50; accept-process-output and async connect

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Mon, 31 Jul 2023 13:32:01 UTC

Severity: normal

Found in version 30.0.50

Full log


Message #8 received at 64975 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Helmut Eller <eller.helmut <at> gmail.com>,
 Robert Pluim <rpluim <at> gmail.com>
Cc: 64975 <at> debbugs.gnu.org
Subject: Re: bug#64975: 30.0.50; accept-process-output and async connect
Date: Sat, 05 Aug 2023 12:26:13 +0300
> From: Helmut Eller <eller.helmut <at> 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?




This bug report was last modified 1 year and 312 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.