diff options
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/files-tests.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el index 3b192ee8727..9d827e865d9 100644 --- a/test/lisp/files-tests.el +++ b/test/lisp/files-tests.el | |||
| @@ -1109,6 +1109,16 @@ unquoted file names." | |||
| 1109 | (with-temp-buffer | 1109 | (with-temp-buffer |
| 1110 | (write-region nil nil nospecial nil :visit)))) | 1110 | (write-region nil nil nospecial nil :visit)))) |
| 1111 | 1111 | ||
| 1112 | (ert-deftest files-tests-file-name-non-special-make-process () | ||
| 1113 | "Check that the ‘:file-handler’ argument of ‘make-process’ | ||
| 1114 | works as expected if the default directory is quoted." | ||
| 1115 | (let ((default-directory (file-name-quote invocation-directory)) | ||
| 1116 | (program (file-name-quote | ||
| 1117 | (expand-file-name invocation-name invocation-directory)))) | ||
| 1118 | (should (processp (make-process :name "name" | ||
| 1119 | :command (list program "--version") | ||
| 1120 | :file-handler t))))) | ||
| 1121 | |||
| 1112 | (ert-deftest files-tests--insert-directory-wildcard-in-dir-p () | 1122 | (ert-deftest files-tests--insert-directory-wildcard-in-dir-p () |
| 1113 | (let ((alist (list (cons "/home/user/*/.txt" (cons "/home/user/" "*/.txt")) | 1123 | (let ((alist (list (cons "/home/user/*/.txt" (cons "/home/user/" "*/.txt")) |
| 1114 | (cons "/home/user/.txt" nil) | 1124 | (cons "/home/user/.txt" nil) |