unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: larsi@gnus.org
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] fix conv_lisp_to_sockaddr for AF_INET6 addresses
Date: Wed, 10 Feb 2016 22:31:05 +0200	[thread overview]
Message-ID: <83bn7o9uk6.fsf@gnu.org> (raw)
In-Reply-To: <83d1s49vm6.fsf@gnu.org> (message from Eli Zaretskii on Wed, 10 Feb 2016 22:08:17 +0200)

> Date: Wed, 10 Feb 2016 22:08:17 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> > That's very strange.  If I remove connect-to-tls-ipv6-nowait from the
> > file and say "make lisp/net/network-stream-tests" then all the remaining
> > tests pass.
> 
> Here, echo-server-nowait fails if I do that.
> 
> > And echo-server-nowait doesn't talk to the same port at the TLS tests,
> > so that's doubly weird.
> 
> Yep.  Any ideas besides some weird timing problem?
> 
> > > However, when connect-to-tls-ipv6-nowait is left to run (and fail),
> > > then echo-server-nowait succeeds.
> > 
> > When it fails, is the gnutls-serv process still running?
> 
> By "it" do you mean connect-to-tls-ipv6-nowait?  If so, AFAICT
> gnutls-serv exits immediately when the failure is reported.

It's indeed some weird problem with timing or maybe with events in
batch mode.  The patch below (which also skips the IPv6 test on
MS-Windows) fixes it.  Do you see any problems with it?

diff --git a/test/lisp/net/network-stream-tests.el b/test/lisp/net/network-stream-tests.el
index 92c5370..d3f229e 100644
--- a/test/lisp/net/network-stream-tests.el
+++ b/test/lisp/net/network-stream-tests.el
@@ -192,6 +192,7 @@ make-tls-server
     (setq status (gnutls-peer-status proc))
     (should (consp status))
     (delete-process proc)
+    (sleep-for 0.1)
     (let ((issuer (plist-get (plist-get status :certificate) :issuer)))
       (should (stringp issuer))
       (setq issuer (split-string issuer ","))
@@ -200,6 +201,7 @@ make-tls-server
 (ert-deftest connect-to-tls-ipv6-nowait ()
   (skip-unless (executable-find "gnutls-serv"))
   (skip-unless (gnutls-available-p))
+  (skip-unless (not (eq system-type 'windows-nt)))
   (let ((server (make-tls-server))
         (times 0)
         proc status)
@@ -226,6 +228,7 @@ make-tls-server
     (setq status (gnutls-peer-status proc))
     (should (consp status))
     (delete-process proc)
+    (sleep-for 0.1)
     (let ((issuer (plist-get (plist-get status :certificate) :issuer)))
       (should (stringp issuer))
       (setq issuer (split-string issuer ","))



  reply	other threads:[~2016-02-10 20:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06 16:06 [PATCH] fix conv_lisp_to_sockaddr for AF_INET6 addresses David Edmondson
2016-02-07  1:45 ` Lars Ingebrigtsen
2016-02-07  1:50   ` Lars Ingebrigtsen
2016-02-07 17:52 ` John Wiegley
2016-02-08  1:29   ` Lars Ingebrigtsen
2016-02-08  3:34     ` Eli Zaretskii
2016-02-08  3:59       ` Lars Ingebrigtsen
2016-02-08  4:01       ` Lars Ingebrigtsen
2016-02-08  4:07         ` Lars Ingebrigtsen
2016-02-08  7:03           ` Michael Albinus
2016-02-08  7:26             ` Lars Ingebrigtsen
2016-02-08 17:04           ` Eli Zaretskii
2016-02-08 23:17             ` Lars Ingebrigtsen
2016-02-09 19:13               ` Eli Zaretskii
2016-02-09 23:07                 ` Lars Ingebrigtsen
2016-02-10 20:08                   ` Eli Zaretskii
2016-02-10 20:31                     ` Eli Zaretskii [this message]
2016-02-11  3:54                       ` Lars Ingebrigtsen
2016-02-13 13:19                         ` Eli Zaretskii
2016-02-08  3:43     ` Lars Ingebrigtsen

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=83bn7o9uk6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /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).