aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii2017-08-05 11:38:04 +0300
committerEli Zaretskii2017-08-05 11:38:04 +0300
commit2441d0118b498dfde9144a86628bdc6974324e49 (patch)
tree3ce1b6efe906373d1e08684f6c350bc0eb34c42b /test
parent19a41ce2dea79b4e5fb8baf1060b615bc03af63b (diff)
downloademacs-2441d0118b498dfde9144a86628bdc6974324e49.tar.gz
emacs-2441d0118b498dfde9144a86628bdc6974324e49.zip
Fix files-tests.el for MS-Windows
* test/lisp/files-tests.el (files-tests--file-name-non-special--subprocess): Fix this test for MS-Windows.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/files-tests.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 59c1dbcbccd..7bfdca53e08 100644
--- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -247,10 +247,11 @@ be $HOME."
247(ert-deftest files-tests--file-name-non-special--subprocess () 247(ert-deftest files-tests--file-name-non-special--subprocess ()
248 "Check that Bug#25949 is fixed." 248 "Check that Bug#25949 is fixed."
249 (skip-unless (executable-find "true")) 249 (skip-unless (executable-find "true"))
250 (should (eq (let ((default-directory "/:/")) (process-file "true")) 0)) 250 (let ((defdir (if (memq system-type '(ms-dos windows-nt)) "/:c:/" "/:/")))
251 (should (processp (let ((default-directory "/:/")) 251 (should (eq (let ((default-directory defdir)) (process-file "true")) 0))
252 (start-file-process "foo" nil "true")))) 252 (should (processp (let ((default-directory defdir))
253 (should (eq (let ((default-directory "/:/")) (shell-command "true")) 0))) 253 (start-file-process "foo" nil "true"))))
254 (should (eq (let ((default-directory defdir)) (shell-command "true")) 0))))
254 255
255(defmacro files-tests--with-advice (symbol where function &rest body) 256(defmacro files-tests--with-advice (symbol where function &rest body)
256 (declare (indent 3)) 257 (declare (indent 3))