[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master e2efcab 2/2: Merge branch 'master' of git.savannah.
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master e2efcab 2/2: Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs |
Date: |
Sat, 24 Aug 2019 09:46:08 -0400 (EDT) |
branch: master
commit e2efcabdc6f4a07acfc9b6c143eb4469ec26ac02
Merge: 6d70161 649fb17
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
---
test/src/process-tests.el | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index 724da1c..82eeee1 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -323,31 +323,39 @@ See Bug#30460."
invocation-directory))
:stop t)))
+;; All the following tests require working DNS, which appears not to
+;; be the case for hydra.nixos.org, so disable them there for now.
+
(ert-deftest lookup-family-specification ()
"network-lookup-address-info should only accept valid family symbols."
+ (skip-unless (not (getenv "EMACS_HYDRA_CI")))
(should-error (network-lookup-address-info "google.com" 'both))
(should (network-lookup-address-info "google.com" 'ipv4))
(should (network-lookup-address-info "google.com" 'ipv6)))
(ert-deftest lookup-unicode-domains ()
"Unicode domains should fail"
+ (skip-unless (not (getenv "EMACS_HYDRA_CI")))
(should-error (network-lookup-address-info "faß.de"))
- (should (length (network-lookup-address-info (puny-encode-domain
"faß.de")))))
+ (should (network-lookup-address-info (puny-encode-domain "faß.de"))))
(ert-deftest unibyte-domain-name ()
"Unibyte domain names should work"
- (should (length (network-lookup-address-info (string-to-unibyte
"google.com")))))
+ (skip-unless (not (getenv "EMACS_HYDRA_CI")))
+ (should (network-lookup-address-info (string-to-unibyte "google.com"))))
(ert-deftest lookup-google ()
"Check that we can look up google IP addresses"
+ (skip-unless (not (getenv "EMACS_HYDRA_CI")))
(let ((addresses-both (network-lookup-address-info "google.com"))
(addresses-v4 (network-lookup-address-info "google.com" 'ipv4))
(addresses-v6 (network-lookup-address-info "google.com" 'ipv6)))
- (should (length addresses-both))
- (should (length addresses-v4))
- (should (length addresses-v6))))
+ (should addresses-both)
+ (should addresses-v4)
+ (should addresses-v6)))
(ert-deftest non-existent-lookup-failure ()
+ (skip-unless (not (getenv "EMACS_HYDRA_CI")))
"Check that looking up non-existent domain returns nil"
(should (eq nil (network-lookup-address-info "emacs.invalid"))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master e2efcab 2/2: Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs,
Eli Zaretskii <=