summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pluim <rpluim@gmail.com>2019-11-26 19:07:42 +0100
committerRobert Pluim <rpluim@gmail.com>2019-11-26 19:27:06 +0100
commit95e218af145d843750c9f05ae7682230a36044a6 (patch)
tree0ec8b57427534018d7166cd13c9a5c0e86e02db9
parent384d1c47cec8e61d1896694b14fcf88710f9dc4d (diff)
downloademacs-95e218af145d843750c9f05ae7682230a36044a6.tar.gz
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".
-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 @@
(should-error (nsm-network-same-subnet local-ip wrong-length-mask remote-ip-yes))
(should (eq nil (nsm-network-same-subnet local-ip wrong-mask remote-ip-yes)))
(should (eq t (nsm-should-check "google.com")))
- (should (eq t (nsm-should-check "127.1")))
+ (should (eq t (nsm-should-check "127.0.0.1")))
(should (eq t (nsm-should-check "localhost")))
(let ((nsm-trust-local-network t))
(should (eq t (nsm-should-check "google.com")))
- (should (eq nil (nsm-should-check "127.1")))
+ (should (eq nil (nsm-should-check "127.0.0.1")))
(should (eq nil (nsm-should-check "localhost"))))))
;; FIXME This will never return true, since