1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 15:52:00 -08:00
emacs/test/lisp/net
Robert Pluim a728135a2b Skip tests that require Internet when there's no Internet
Bug#46641

The network-stream-tests actually work fine when the local machine has
no IP at all, but cause a crash in the GnuTLS library when there is an
IP configured but the interface is down.

* test/lisp/net/network-stream-tests.el (internet-is-working): New
defvar, checks if we can resolve "google.com".
(connect-to-tls-ipv4-nowait, connect-to-tls-ipv6-nowait)
(open-network-stream-tls-nowait, open-gnutls-stream-new-api-nowait)
(open-gnutls-stream-old-api-nowait): Use it to check for working
Internet access.

* test/src/process-tests.el (internet-is-working): New defvar, checks
if we can resolve "google.com".
(lookup-family-specification, lookup-unicode-domains)
(unibyte-domain-name, lookup-google, non-existent-lookup-failure): Use
it to check for working Internet access.
2021-02-22 15:48:06 +01:00
..
dbus-resources Add D-Bus introspection tests 2020-09-30 11:19:41 +02:00
mailcap-resources Move some test data to follow our conventions 2020-10-23 16:29:46 +02:00
netrc-resources Use lexical-binding in netrc.el and add tests 2020-10-28 03:24:18 +01:00
network-stream-resources Move more test data to follow our conventions 2020-10-23 21:07:26 +02:00
ntlm-resources Implement NTLM server for ntlm.el testing 2021-02-18 18:59:18 -05:00
shr-resources Move shr.el test data to follow our conventions 2020-10-24 02:29:04 +02:00
tramp-archive-resources
browse-url-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
dbus-tests.el Add command 'dbus-monitor' 2021-02-05 14:32:41 +01:00
dig-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
gnutls-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
hmac-md5-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
mailcap-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
netrc-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
network-stream-tests.el Skip tests that require Internet when there's no Internet 2021-02-22 15:48:06 +01:00
newsticker-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
nsm-tests.el Only run IPv6 tests if we have an IPv6 address 2021-01-12 18:53:48 +01:00
ntlm-tests.el ntlm-tests: Remove missing dependency warnings 2021-02-19 17:11:42 -05:00
puny-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
rcirc-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
rfc2104-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sasl-cram-tests.el Use lexical-binding in sasl.el and add tests 2021-01-29 20:11:38 +01:00
sasl-scram-rfc-tests.el ; Minor license statement fixes 2021-02-08 09:10:57 +01:00
sasl-tests.el Use lexical-binding in sasl.el and add tests 2021-01-29 20:11:38 +01:00
secrets-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
shr-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
socks-tests.el Mute noisy test fixture for socks.el 2021-02-20 17:15:44 +02:00
tramp-archive-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
tramp-tests.el Fix Tramp bug#46625 2021-02-19 09:21:55 +01:00
webjump-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00