unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 42535@debbugs.gnu.org, Philipp <p.stephani2@gmail.com>
Subject: bug#42535: 28.0.50; macOS test failure: echo-server-with-dns
Date: Tue, 04 Aug 2020 17:14:04 +0200	[thread overview]
Message-ID: <m27due8mv7.fsf@gmail.com> (raw)
In-Reply-To: <87r1smmp3d.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Aug 2020 17:02:14 +0200")

>>>>> On Tue, 04 Aug 2020 17:02:14 +0200, Lars Ingebrigtsen <larsi@gnus.org> said:

    Lars> Robert Pluim <rpluim@gmail.com> writes:
    >> Then either we need to accept that this test can fail on some systems,
    >> or we risk calling the wrath of <insert large internet company> down
    >> upon us by putting one of their public servers in the test. Or we just
    >> use www.gnu.org

    Lars> We can't use anything external -- that'd fail a lot more than using
    Lars> (system-name).

    Lars> But we should just disable this test if (system-name) doesn't resolve.
    Lars> That should be easy enough to check for.  

    Lars> (network-lookup-address-info (system-name))
    Lars> => ([127 0 1 1 0])

    Lars> So reasonable values here would be 127 as the first octet on ipv4...

Why restrict yourself to IPv4?

(network-lookup-address-info (system-name))
=> ([0 0 0 0 0 0 0 1 0] [127 0 0 1 0])

Note that strictly speaking this doesnʼt test DNS, since in my case
itʼs just looking in /etc/hosts, but it does test the resolver.

Robert





  reply	other threads:[~2020-08-04 15:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-25 18:39 bug#42535: 28.0.50; macOS test failure: echo-server-with-dns Philipp
2020-08-03 10:22 ` Robert Pluim
2020-08-04 14:12   ` Lars Ingebrigtsen
2020-08-04 14:32     ` Robert Pluim
2020-08-04 14:39       ` Lars Ingebrigtsen
2020-08-04 14:52         ` Robert Pluim
2020-08-04 15:02           ` Lars Ingebrigtsen
2020-08-04 15:14             ` Robert Pluim [this message]
2020-08-04 15:16               ` Lars Ingebrigtsen
2020-08-04 15:25                 ` Andreas Schwab
2020-08-04 15:26                   ` Lars Ingebrigtsen
2020-08-04 15:34                     ` Robert Pluim
2020-08-04 16:12                       ` Lars Ingebrigtsen
2020-08-04 16:20                         ` Robert Pluim
2020-08-04 16:23                   ` Eli Zaretskii
2020-08-04 15:32                 ` Robert Pluim
2020-08-04 14:14 ` Lars Ingebrigtsen
2020-08-04 15:28 ` Lars Ingebrigtsen
2020-08-04 16:08   ` Philipp Stephani
2020-08-04 16:11     ` 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=m27due8mv7.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=42535@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=p.stephani2@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).