From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64975: 30.0.50; accept-process-output and async connect Date: Sat, 05 Aug 2023 12:26:13 +0300 Message-ID: <838rapu9fu.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12155"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64975@debbugs.gnu.org To: Helmut Eller , Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 05 11:27:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qSDZF-0002vo-NT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Aug 2023 11:27:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSDYu-0008Qo-3M; Sat, 05 Aug 2023 05:27:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSDYs-0008Qa-Dx for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 05:27:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSDYs-0005P9-5g for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 05:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSDYs-0008Va-1s for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 05:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Aug 2023 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64975 X-GNU-PR-Package: emacs Original-Received: via spool by 64975-submit@debbugs.gnu.org id=B64975.169122756632614 (code B ref 64975); Sat, 05 Aug 2023 09:27:02 +0000 Original-Received: (at 64975) by debbugs.gnu.org; 5 Aug 2023 09:26:06 +0000 Original-Received: from localhost ([127.0.0.1]:55649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSDXx-0008Tv-T3 for submit@debbugs.gnu.org; Sat, 05 Aug 2023 05:26:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSDXw-0008Su-M0 for 64975@debbugs.gnu.org; Sat, 05 Aug 2023 05:26:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSDXr-0005IW-E9; Sat, 05 Aug 2023 05:25:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/Og/1OWWdmN9/0drpaO61BXwiPOzd9NW05+hruCcyno=; b=bUIjzKg6jpzm XFaMWpZb18ex6ZeTlPPSumqlsg9OKi2PywLI74+CHEtEsGLJLmt7HZ5mrGTgDBZgMgErmsDzQ+HJ6 Pem9jKlok74x/9EEB+Sq5eKaeqqZMP7Z075YmT1DFnCKevmlUQfY3ldws+DlDBfaDnCZdyJfuR6QG 7ISSNO5v/f1WGukhGkG0CxeDqNFn6GG6MnwuEVJ/5ZlDFBkeUUpV4e/0M2OcDkE0XSCOpqG/zt9Jk VvoRJX0WSK8FoFsFe00rVuVl5VBFW0RVCmZxGKuXamsJ1CrfG6yZhQ7oEiEIF7rb/IZLh0UuAl2+s 9mH4diI6VQv54WLVNlw50w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSDXq-0007a9-Tj; Sat, 05 Aug 2023 05:25:59 -0400 In-Reply-To: (message from Helmut Eller on Mon, 31 Jul 2023 15:31:00 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266750 Archived-At: > From: Helmut Eller > 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?