]> git.eshelyaron.com Git - emacs.git/commit
Only run IPv6 tests if we have an IPv6 address
authorRobert Pluim <rpluim@gmail.com>
Tue, 12 Jan 2021 17:50:38 +0000 (18:50 +0100)
committerRobert Pluim <rpluim@gmail.com>
Tue, 12 Jan 2021 17:53:48 +0000 (18:53 +0100)
commit0f6c083251ccc727d0b18a62cdd99901aa692c78
treea9fd5b578966b8478615d6a6ab9970c839b7c24c
parent6dc4fc7d621008086388dae48f6794f7d69edff9
Only run IPv6 tests if we have an IPv6 address

* test/src/process-tests.el (ipv6-is-available): New function for
checking whether we have a globally routable IPv6 prefix assigned.
(lookup-family-specification): Use 'ipv6-is-available' to check for
IPv6.  Use 'localhost' instead of 'google.com' to test
'network-lookup-address-info' API.
(lookup-google): Use 'ipv6-is-available' to check for
IPv6.

* test/lisp/net/nsm-tests.el (nsm-ipv6-is-available): Rename to
'ipv6-is-available', make identical to the one in
test/src/process-tests.el.
test/lisp/net/nsm-tests.el
test/src/process-tests.el