aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii2024-07-13 08:44:49 -0400
committerEli Zaretskii2024-07-13 08:44:49 -0400
commit44ae4868d38acf7d8173be39c052b7fc9a7aaefa (patch)
treead05d0568f40b8c775c0e46f9309e7eea03aba8d /test
parent3a26a51c69b064546fd4647a94cdfc2656b201ec (diff)
parenta6c78ccf5f297e612ff0f2159a7bed3a70637168 (diff)
downloademacs-44ae4868d38acf7d8173be39c052b7fc9a7aaefa.tar.gz
emacs-44ae4868d38acf7d8173be39c052b7fc9a7aaefa.zip
Merge from origin/emacs-30
a6c78ccf5f2 ; * src/w32fns.c (Fw32_notification_close): Fix typo (bug... febafe37884 * test/lisp/wdired-tests.el (wdired-test-bug34915): Fix f... 846b79b6d02 Fix 'wdired-test-unfinished-edit-01' bc154cba130 ; * src/search.c (Fre_search_forward): Clarify doc string... 53291e3d46e Fontify destructor in c++-ts-mode d77f8a34750 Fix invalid defcustom type for erc-buffers option d68a4ea3ec6 ; Fix 'ibuffer-do-isearch{-regexp}' 8b1a0f8695a Fix infloop in 'shell-resync-dirs' ce13eee5ab7 ; * src/image.c (free_image_cache): Add assertion. (Bug#...
Diffstat (limited to 'test')
-rw-r--r--test/lisp/wdired-tests.el18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/lisp/wdired-tests.el b/test/lisp/wdired-tests.el
index f7bff743058..7c7026354b8 100644
--- a/test/lisp/wdired-tests.el
+++ b/test/lisp/wdired-tests.el
@@ -114,7 +114,7 @@ wdired-mode."
114 (setq test-dir (file-truename test-dir)) 114 (setq test-dir (file-truename test-dir))
115 (let* ((test-file (concat (file-name-as-directory test-dir) "foo.c")) 115 (let* ((test-file (concat (file-name-as-directory test-dir) "foo.c"))
116 (replace "bar") 116 (replace "bar")
117 (new-file (string-replace "foo" replace test-file))) 117 (new-file (string-replace "/foo" (concat "/" replace) test-file)))
118 (write-region "" nil test-file nil 'silent) 118 (write-region "" nil test-file nil 'silent)
119 (let ((buf (find-file-noselect test-dir))) 119 (let ((buf (find-file-noselect test-dir)))
120 (unwind-protect 120 (unwind-protect
@@ -141,21 +141,27 @@ wdired-get-filename before and after editing."
141 ;; FIXME: Add a test for a door (indicator ">") only under Solaris? 141 ;; FIXME: Add a test for a door (indicator ">") only under Solaris?
142 (ert-with-temp-directory test-dir 142 (ert-with-temp-directory test-dir
143 (let* ((dired-listing-switches "-Fl") 143 (let* ((dired-listing-switches "-Fl")
144 (dired-ls-F-marks-symlinks (eq system-type 'darwin)) 144 (dired-ls-F-marks-symlinks
145 (or (eq system-type 'darwin)
146 (featurep 'ls-lisp)))
145 (buf (find-file-noselect test-dir)) 147 (buf (find-file-noselect test-dir))
146 proc) 148 proc)
147 (unwind-protect 149 (unwind-protect
148 (progn 150 (progn
149 (with-current-buffer buf 151 (with-current-buffer buf
150 (dired-create-empty-file "foo") 152 ;; Create a .bat file so that MS-Windows, where the 'x'
151 (set-file-modes "foo" (file-modes-symbolic-to-number "+x")) 153 ;; bit is not recorded in the filesystem, considers it an
154 ;; executable.
155 (dired-create-empty-file "foo.bat")
156 (set-file-modes "foo.bat" (file-modes-symbolic-to-number "+x"))
152 (skip-unless 157 (skip-unless
153 ;; This check is for wdired, not symbolic links, so skip 158 ;; This check is for wdired, not symbolic links, so skip
154 ;; it when make-symbolic-link fails for any reason (like 159 ;; it when make-symbolic-link fails for any reason (like
155 ;; insufficient privileges). 160 ;; insufficient privileges).
156 (ignore-errors (make-symbolic-link "foo" "bar") t)) 161 (ignore-errors (make-symbolic-link "foo.bat" "bar") t))
157 (make-directory "foodir") 162 (make-directory "foodir")
158 (dired-smart-shell-command "mkfifo foopipe") 163 (unless (memq system-type '(windows-nt ms-dos))
164 (dired-smart-shell-command "mkfifo foopipe"))
159 (when (featurep 'make-network-process '(:family local)) 165 (when (featurep 'make-network-process '(:family local))
160 (setq proc (make-network-process 166 (setq proc (make-network-process
161 :name "foo" 167 :name "foo"