diff options
| author | Juanma Barranquero | 2019-06-28 15:22:00 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2019-06-28 15:22:00 +0200 |
| commit | bfc7c6e0d3d37e907936d519438413d4b6d01b98 (patch) | |
| tree | a6f80ceee8ad8de9e5fa7400fbff00762ba39fbe /test | |
| parent | 13b95e1cc7d6b747adbe422e84543b0f2fff115a (diff) | |
| download | emacs-bfc7c6e0d3d37e907936d519438413d4b6d01b98.tar.gz emacs-bfc7c6e0d3d37e907936d519438413d4b6d01b98.zip | |
* test/lisp/url/url-file-tests.el (url-file): Fix for POSIX filenames.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/url/url-file-tests.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lisp/url/url-file-tests.el b/test/lisp/url/url-file-tests.el index 84b7c3a70b0..58e0250ba96 100644 --- a/test/lisp/url/url-file-tests.el +++ b/test/lisp/url/url-file-tests.el | |||
| @@ -34,10 +34,11 @@ | |||
| 34 | 34 | ||
| 35 | (ert-deftest url-file () | 35 | (ert-deftest url-file () |
| 36 | "Test reading file via file:/// URL." | 36 | "Test reading file via file:/// URL." |
| 37 | (let ((file (expand-file-name "file.txt" url-file-tests-data-directory))) | 37 | (let* ((file (expand-file-name "file.txt" url-file-tests-data-directory)) |
| 38 | (uri-prefix (if (eq (aref file 0) ?/) "file://" "file:///"))) | ||
| 38 | (should (equal | 39 | (should (equal |
| 39 | (with-current-buffer | 40 | (with-current-buffer |
| 40 | (url-file (url-generic-parse-url (concat "file:///" file)) | 41 | (url-file (url-generic-parse-url (concat uri-prefix file)) |
| 41 | #'ignore nil) | 42 | #'ignore nil) |
| 42 | (prog1 (buffer-substring (point) (point-max)) | 43 | (prog1 (buffer-substring (point) (point-max)) |
| 43 | (kill-buffer))) | 44 | (kill-buffer))) |