diff options
| author | Michael Albinus | 2015-12-06 18:55:50 +0100 |
|---|---|---|
| committer | Michael Albinus | 2015-12-06 18:55:50 +0100 |
| commit | 0e574ea35ea75fa91a38718966ffe6c17b8e93d8 (patch) | |
| tree | e0c14ac0d60f1d0e731b93cb4dd70249a1ef58b6 /test | |
| parent | cca5629f7856d88de940da942acbf5ca7f95a944 (diff) | |
| download | emacs-0e574ea35ea75fa91a38718966ffe6c17b8e93d8.tar.gz emacs-0e574ea35ea75fa91a38718966ffe6c17b8e93d8.zip | |
Fix minor Tramp problems found on BSD
* lisp/net/tramp-sh.el (tramp-perl-file-truename): Do not append
trailing slash. Quote apostrophes.
(tramp-sh-handle-file-truename): Do not append trailing slash in
the "ls" case.
(tramp-get-ls-command-with-w-option): New defun.
(tramp-do-file-attributes-with-ls)
(tramp-do-directory-files-and-attributes-with-stat): Use it.
* test/automated/tramp-tests.el
(tramp-test31-special-characters-with-perl)
(tramp-test31-special-characters-with-ls)
(tramp-test32-utf8-with-perl, tramp-test32-utf8-with-ls):
Suppress also readlink.
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/tramp-tests.el | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el index c5cab7d5991..8a1743cd200 100644 --- a/test/automated/tramp-tests.el +++ b/test/automated/tramp-tests.el | |||
| @@ -1987,7 +1987,10 @@ Use the `perl' command." | |||
| 1987 | (let ((tramp-connection-properties | 1987 | (let ((tramp-connection-properties |
| 1988 | (append | 1988 | (append |
| 1989 | `((,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | 1989 | `((,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) |
| 1990 | "stat" nil)) | 1990 | "stat" nil) |
| 1991 | ;; See `tramp-sh-handle-file-truename'. | ||
| 1992 | (,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | ||
| 1993 | "readlink" nil)) | ||
| 1991 | tramp-connection-properties))) | 1994 | tramp-connection-properties))) |
| 1992 | (tramp--test-special-characters))) | 1995 | (tramp--test-special-characters))) |
| 1993 | 1996 | ||
| @@ -2005,7 +2008,10 @@ Use the `ls' command." | |||
| 2005 | `((,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | 2008 | `((,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) |
| 2006 | "perl" nil) | 2009 | "perl" nil) |
| 2007 | (,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | 2010 | (,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) |
| 2008 | "stat" nil)) | 2011 | "stat" nil) |
| 2012 | ;; See `tramp-sh-handle-file-truename'. | ||
| 2013 | (,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | ||
| 2014 | "readlink" nil)) | ||
| 2009 | tramp-connection-properties))) | 2015 | tramp-connection-properties))) |
| 2010 | (tramp--test-special-characters))) | 2016 | (tramp--test-special-characters))) |
| 2011 | 2017 | ||
| @@ -2059,7 +2065,10 @@ Use the `perl' command." | |||
| 2059 | (let ((tramp-connection-properties | 2065 | (let ((tramp-connection-properties |
| 2060 | (append | 2066 | (append |
| 2061 | `((,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | 2067 | `((,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) |
| 2062 | "stat" nil)) | 2068 | "stat" nil) |
| 2069 | ;; See `tramp-sh-handle-file-truename'. | ||
| 2070 | (,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | ||
| 2071 | "readlink" nil)) | ||
| 2063 | tramp-connection-properties))) | 2072 | tramp-connection-properties))) |
| 2064 | (tramp--test-utf8))) | 2073 | (tramp--test-utf8))) |
| 2065 | 2074 | ||
| @@ -2077,7 +2086,10 @@ Use the `ls' command." | |||
| 2077 | `((,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | 2086 | `((,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) |
| 2078 | "perl" nil) | 2087 | "perl" nil) |
| 2079 | (,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | 2088 | (,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) |
| 2080 | "stat" nil)) | 2089 | "stat" nil) |
| 2090 | ;; See `tramp-sh-handle-file-truename'. | ||
| 2091 | (,(regexp-quote (file-remote-p tramp-test-temporary-file-directory)) | ||
| 2092 | "readlink" nil)) | ||
| 2081 | tramp-connection-properties))) | 2093 | tramp-connection-properties))) |
| 2082 | (tramp--test-utf8))) | 2094 | (tramp--test-utf8))) |
| 2083 | 2095 | ||