diff options
| author | Michael Albinus | 2025-09-15 18:26:50 +0200 |
|---|---|---|
| committer | Michael Albinus | 2025-09-15 18:26:50 +0200 |
| commit | d6a7b0cd33c6300aeba184d1e7b5fdec41704058 (patch) | |
| tree | ae732004143d3f2c26e7608384f6c1ee9590fd06 /test/lisp | |
| parent | 72c19d0f395e8883c65689c86e79905a34d36586 (diff) | |
| download | emacs-d6a7b0cd33c6300aeba184d1e7b5fdec41704058.tar.gz emacs-d6a7b0cd33c6300aeba184d1e7b5fdec41704058.zip | |
Tramp code cleanup
* lisp/net/tramp.el (tramp-use-absolute-autoload-file-names)
(tramp-skeleton-file-name-all-completions)
(tramp-parse-auth-sources, tramp-parse-file, tramp-parse-netrc):
* lisp/net/tramp-cache.el (tramp-parse-connection-properties):
* lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
Use `seq-uniq'.
* lisp/net/tramp.el (tramp-register-foreign-file-name-handler):
* lisp/net/tramp-fuse.el (tramp-fuse-handle-directory-files):
Use `seq-union'.
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test17-insert-directory):
* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory):
Use `seq-union'.
(tramp-test42-utf8): Use `seq-uniq' and `tramp-compat-seq-keep'.
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/net/tramp-archive-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/test/lisp/net/tramp-archive-tests.el b/test/lisp/net/tramp-archive-tests.el index 0ff0f3ddd4d..33dc0b9d4af 100644 --- a/test/lisp/net/tramp-archive-tests.el +++ b/test/lisp/net/tramp-archive-tests.el | |||
| @@ -559,7 +559,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 559 | 559 | ||
| 560 | (let (;; We test for the summary line. Keyword "total" could be localized. | 560 | (let (;; We test for the summary line. Keyword "total" could be localized. |
| 561 | (process-environment | 561 | (process-environment |
| 562 | (append '("LANG=C" "LANGUAGE=C" "LC_ALL=C") process-environment))) | 562 | (seq-union '("LANG=C" "LANGUAGE=C" "LC_ALL=C") process-environment))) |
| 563 | (unwind-protect | 563 | (unwind-protect |
| 564 | (progn | 564 | (progn |
| 565 | (with-temp-buffer | 565 | (with-temp-buffer |
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 7b90bb4d9be..e011b99be57 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -3515,7 +3515,7 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 3515 | (tmp-name2 (expand-file-name "foo" tmp-name1)) | 3515 | (tmp-name2 (expand-file-name "foo" tmp-name1)) |
| 3516 | ;; We test for the summary line. Keyword "total" could be localized. | 3516 | ;; We test for the summary line. Keyword "total" could be localized. |
| 3517 | (process-environment | 3517 | (process-environment |
| 3518 | (append '("LANG=C" "LANGUAGE=C" "LC_ALL=C") process-environment))) | 3518 | (seq-union '("LANG=C" "LANGUAGE=C" "LC_ALL=C") process-environment))) |
| 3519 | (unwind-protect | 3519 | (unwind-protect |
| 3520 | (progn | 3520 | (progn |
| 3521 | (make-directory tmp-name1) | 3521 | (make-directory tmp-name1) |
| @@ -5656,8 +5656,7 @@ If UNSTABLE is non-nil, the test is tagged as `:unstable'." | |||
| 5656 | (ert-deftest tramp-test30-make-process () | 5656 | (ert-deftest tramp-test30-make-process () |
| 5657 | "Check `make-process'." | 5657 | "Check `make-process'." |
| 5658 | :tags (append '(:expensive-test :tramp-asynchronous-processes) | 5658 | :tags (append '(:expensive-test :tramp-asynchronous-processes) |
| 5659 | (and (getenv "EMACS_EMBA_CI") | 5659 | (and (getenv "EMACS_EMBA_CI") '(:unstable))) |
| 5660 | '(:unstable))) | ||
| 5661 | (skip-unless (tramp--test-enabled)) | 5660 | (skip-unless (tramp--test-enabled)) |
| 5662 | (skip-unless (tramp--test-supports-processes-p)) | 5661 | (skip-unless (tramp--test-supports-processes-p)) |
| 5663 | 5662 | ||
| @@ -7887,8 +7886,8 @@ This requires restrictions of file name syntax." | |||
| 7887 | "🌈🍒👋") | 7886 | "🌈🍒👋") |
| 7888 | 7887 | ||
| 7889 | (when (and (tramp--test-expensive-test-p) (not (tramp--test-windows-nt-p))) | 7888 | (when (and (tramp--test-expensive-test-p) (not (tramp--test-windows-nt-p))) |
| 7890 | (delete-dups | 7889 | (seq-uniq |
| 7891 | (mapcar | 7890 | (tramp-compat-seq-keep |
| 7892 | ;; Use all available language specific snippets. | 7891 | ;; Use all available language specific snippets. |
| 7893 | (lambda (x) | 7892 | (lambda (x) |
| 7894 | (and | 7893 | (and |