aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSean Whitton2024-10-24 12:13:20 +0800
committerSean Whitton2024-10-24 12:13:20 +0800
commit95f89c736fd80f27e586127009880f89a77adb3b (patch)
tree9d1d6ba0b6227f699686f51c49700f8b63e3a035 /test
parent3bb1b85b78b8079e160dcb10774fe82c2daa1b4d (diff)
parentf5451b6a0668f4dc9992562b62ed37a199f1fdad (diff)
downloademacs-95f89c736fd80f27e586127009880f89a77adb3b.tar.gz
emacs-95f89c736fd80f27e586127009880f89a77adb3b.zip
Merge from origin/emacs-30
f5451b6a066 ; Improve comment from last change 09e05f7ee4d Document and-let* vs. when-let* usage convention b7a375f5c49 Fix error when splicing Eshell globs and a glob expands t... 2289e162268 * etc/package-keyring.gpg: Update expiration and add new key 48024096fea Avoid crashes when scrolling images under winner-mode c35d6ba9f07 ; * doc/lispref/display.texi (Fontsets): Clarify wording. 88a1a32fc57 ; * doc/lispref/display.texi (Fontsets): Fix typo. 6be47058cd7 ; Add indexing for 'use-default-font-for-symbols' 681f70ea04a * src/lread.c (READ_AND_BUFFER): Reject negative chars (b... ac4151e0023 * test/Makefile.in: Do not show emacs-module-tests.log by... 4e0cb960dbd Fix 'php-ts-mode': better indentation and font locking
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.in2
-rw-r--r--test/lisp/eshell/em-glob-tests.el16
2 files changed, 14 insertions, 4 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 3cbdbec4414..7a3178546a1 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -170,7 +170,7 @@ WRITE_LOG = > $@ 2>&1 || { STAT=$$?; cat $@; exit $$STAT; }
170endif 170endif
171## On Emba, always show logs for certain problematic tests. 171## On Emba, always show logs for certain problematic tests.
172ifdef EMACS_EMBA_CI 172ifdef EMACS_EMBA_CI
173lisp/filenotify-tests.log lisp/net/tramp-tests.log src/emacs-module-tests.log \ 173lisp/filenotify-tests.log lisp/net/tramp-tests.log \
174: WRITE_LOG = 2>&1 | tee $@ 174: WRITE_LOG = 2>&1 | tee $@
175endif 175endif
176 176
diff --git a/test/lisp/eshell/em-glob-tests.el b/test/lisp/eshell/em-glob-tests.el
index 2efb3a9df69..88e9cc73bbd 100644
--- a/test/lisp/eshell/em-glob-tests.el
+++ b/test/lisp/eshell/em-glob-tests.el
@@ -74,7 +74,13 @@ component ending in \"symlink\" is treated as a symbolic link."
74 ;; Ensure the default expansion splices the glob. 74 ;; Ensure the default expansion splices the glob.
75 (eshell-command-result-equal "funcall list *.el" '("a.el" "b.el")) 75 (eshell-command-result-equal "funcall list *.el" '("a.el" "b.el"))
76 (eshell-command-result-equal "funcall list *.txt" '("c.txt")) 76 (eshell-command-result-equal "funcall list *.txt" '("c.txt"))
77 (eshell-command-result-equal "funcall list *.no" '("*.no"))))) 77 ;; When spliting, no-matches cases also return a list containing
78 ;; the original non-matching glob.
79 (eshell-command-result-equal "funcall list *.no" '("*.no"))
80 (when (eshell-tests-remote-accessible-p)
81 (let ((remote (file-remote-p ert-remote-temporary-file-directory)))
82 (eshell-command-result-equal (format "funcall list %s~/a.el" remote)
83 `(,(format "%s~/a.el" remote))))))))
78 84
79(ert-deftest em-glob-test/expand/no-splice-results () 85(ert-deftest em-glob-test/expand/no-splice-results ()
80 "Test that globs are treated as lists when 86 "Test that globs are treated as lists when
@@ -85,9 +91,13 @@ component ending in \"symlink\" is treated as a symbolic link."
85 ;; Ensure the default expansion splices the glob. 91 ;; Ensure the default expansion splices the glob.
86 (eshell-command-result-equal "funcall list *.el" '(("a.el" "b.el"))) 92 (eshell-command-result-equal "funcall list *.el" '(("a.el" "b.el")))
87 (eshell-command-result-equal "funcall list *.txt" '(("c.txt"))) 93 (eshell-command-result-equal "funcall list *.txt" '(("c.txt")))
88 ;; The no-matches case is special here: the glob is just the 94 ;; The no-matches cases are special here: the glob is just the
89 ;; string, not the list of results. 95 ;; string, not the list of results.
90 (eshell-command-result-equal "funcall list *.no" '("*.no"))))) 96 (eshell-command-result-equal "funcall list *.no" '("*.no"))
97 (when (eshell-tests-remote-accessible-p)
98 (let ((remote (file-remote-p ert-remote-temporary-file-directory)))
99 (eshell-command-result-equal (format "funcall list %s~/a.el" remote)
100 `(,(format "%s~/a.el" remote))))))))
91 101
92(ert-deftest em-glob-test/expand/explicitly-splice-results () 102(ert-deftest em-glob-test/expand/explicitly-splice-results ()
93 "Test explicitly splicing globs works the same no matter the 103 "Test explicitly splicing globs works the same no matter the