aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-01-28 16:33:47 +0100
committerMichael Albinus2019-01-28 16:33:47 +0100
commit0c9bce3fc490d6f5e935883e9690871cce4f9150 (patch)
tree034710222a3481e18d87534a1160851e81b319cd
parent6c560a3b16f9015a19044395f0ef41b718d73496 (diff)
downloademacs-0c9bce3fc490d6f5e935883e9690871cce4f9150.tar.gz
emacs-0c9bce3fc490d6f5e935883e9690871cce4f9150.zip
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults): Adapt test.
-rw-r--r--test/lisp/net/tramp-tests.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 5adc6b1a140..7fa25f1baf3 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -1817,17 +1817,15 @@ properly. BODY shall not contain a timeout."
1817 (should (string-equal (file-remote-p "/-:ftp.host:" 'method) "ftp")) 1817 (should (string-equal (file-remote-p "/-:ftp.host:" 'method) "ftp"))
1818 (dolist (u '("ftp" "anonymous")) 1818 (dolist (u '("ftp" "anonymous"))
1819 (should (string-equal (file-remote-p (format "/-:%s@:" u) 'method) "ftp"))) 1819 (should (string-equal (file-remote-p (format "/-:%s@:" u) 'method) "ftp")))
1820 ;; Default values in tramp-gvfs.el. 1820 ;; Default values in tramp-sh.el and tramp-sudoedit.el.
1821 (when (and (load "tramp-gvfs" 'noerror 'nomessage)
1822 (symbol-value 'tramp-gvfs-enabled))
1823 (should (string-equal (file-remote-p "/synce::" 'user) nil)))
1824 ;; Default values in tramp-sh.el.
1825 (dolist (h `("127.0.0.1" "[::1]" "localhost" "localhost6" ,(system-name))) 1821 (dolist (h `("127.0.0.1" "[::1]" "localhost" "localhost6" ,(system-name)))
1826 (should 1822 (should
1827 (string-equal (file-remote-p (format "/-:root@%s:" h) 'method) "su"))) 1823 (string-equal (file-remote-p (format "/-:root@%s:" h) 'method) "su")))
1828 (dolist (m '("su" "sudo" "ksu")) 1824 (dolist (m '("su" "sudo" "ksu" "doas" "sudoedit"))
1829 (should (string-equal (file-remote-p (format "/%s::" m) 'user) "root"))) 1825 (should (string-equal (file-remote-p (format "/%s::" m) 'user) "root"))
1830 (dolist (m '("rcp" "remcp" "rsh" "telnet" "krlogin" "fcp")) 1826 (should
1827 (string-equal (file-remote-p (format "/%s::" m) 'host) (system-name))))
1828 (dolist (m '("rcp" "remcp" "rsh" "telnet" "krlogin" "fcp" "nc"))
1831 (should 1829 (should
1832 (string-equal (file-remote-p (format "/%s::" m) 'user) (user-login-name)))) 1830 (string-equal (file-remote-p (format "/%s::" m) 'user) (user-login-name))))
1833 ;; Default values in tramp-smb.el. 1831 ;; Default values in tramp-smb.el.