aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobert Pluim2019-11-26 19:07:42 +0100
committerRobert Pluim2019-11-26 19:27:06 +0100
commit95e218af145d843750c9f05ae7682230a36044a6 (patch)
tree0ec8b57427534018d7166cd13c9a5c0e86e02db9 /test
parent384d1c47cec8e61d1896694b14fcf88710f9dc4d (diff)
downloademacs-95e218af145d843750c9f05ae7682230a36044a6.tar.gz
emacs-95e218af145d843750c9f05ae7682230a36044a6.zip
Use 127.0.0.1 in nsm-tests
Winsock doesn't like "127.1" * test/lisp/net/nsm-tests.el (nsm-check-local-subnet-ipv4): Spell numeric localhost as "127.0.0.1" instead of "127.1".
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/nsm-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/net/nsm-tests.el b/test/lisp/net/nsm-tests.el
index bf6ac04b527..f3544370389 100644
--- a/test/lisp/net/nsm-tests.el
+++ b/test/lisp/net/nsm-tests.el
@@ -42,11 +42,11 @@
42 (should-error (nsm-network-same-subnet local-ip wrong-length-mask remote-ip-yes)) 42 (should-error (nsm-network-same-subnet local-ip wrong-length-mask remote-ip-yes))
43 (should (eq nil (nsm-network-same-subnet local-ip wrong-mask remote-ip-yes))) 43 (should (eq nil (nsm-network-same-subnet local-ip wrong-mask remote-ip-yes)))
44 (should (eq t (nsm-should-check "google.com"))) 44 (should (eq t (nsm-should-check "google.com")))
45 (should (eq t (nsm-should-check "127.1"))) 45 (should (eq t (nsm-should-check "127.0.0.1")))
46 (should (eq t (nsm-should-check "localhost"))) 46 (should (eq t (nsm-should-check "localhost")))
47 (let ((nsm-trust-local-network t)) 47 (let ((nsm-trust-local-network t))
48 (should (eq t (nsm-should-check "google.com"))) 48 (should (eq t (nsm-should-check "google.com")))
49 (should (eq nil (nsm-should-check "127.1"))) 49 (should (eq nil (nsm-should-check "127.0.0.1")))
50 (should (eq nil (nsm-should-check "localhost")))))) 50 (should (eq nil (nsm-should-check "localhost"))))))
51 51
52;; FIXME This will never return true, since 52;; FIXME This will never return true, since