diff options
| author | Glenn Morris | 2017-11-20 13:08:35 -0500 |
|---|---|---|
| committer | Glenn Morris | 2017-11-20 13:08:35 -0500 |
| commit | 33bfbfee7ef04392b0c30ca2ab5074a14c4ddad7 (patch) | |
| tree | 1f9432682a7bff627f7208bcd8cc594bf7b5d60a /test | |
| parent | 7cf41d8088284c2fe8b1807d07fc082a270e6a78 (diff) | |
| parent | 6e6bf60eab1e921605064e3d39ea080639f8e0f6 (diff) | |
| download | emacs-33bfbfee7ef04392b0c30ca2ab5074a14c4ddad7.tar.gz emacs-33bfbfee7ef04392b0c30ca2ab5074a14c4ddad7.zip | |
Merge from origin/emacs-26
6e6bf60 Don't let delete_frame select a tooltip frame (Bug#27647)
e9dd580 Filter obtrusive events in help-read-key-sequence.
90075e8 Fix symlink flag in tramp-gvfs-handle-file-attributes
c355529 Fix bug in tramp-handle-file-truename
4c21d04 Fix a typo in doc string of electric-indent-functions-without...
319c2de Avoid assertion violations in echo_area_display
63c7733 ; * lisp/ido.el (ido-find-alternate-file): Doc fix. (Bug#29278)
cbd319a Fix case-folding in Occur
29520b0 Fix quick-calc in C mode with hex values
3e80124 Improve documentation of dired-next/prev-marked-file
90add18 Prevent aborts in line-move-visual
648c128 More fixes in src/.gdbinit
104f3e5 Document how to enter whitespace when using grep-read-files
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index a5bce172c94..bfc62049ccd 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -2671,7 +2671,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 2671 | (should-error | 2671 | (should-error |
| 2672 | (make-symbolic-link tmp-name1 tmp-name2) | 2672 | (make-symbolic-link tmp-name1 tmp-name2) |
| 2673 | :type 'file-already-exists) | 2673 | :type 'file-already-exists) |
| 2674 | ;; number means interactive case. | 2674 | ;; A number means interactive case. |
| 2675 | (cl-letf (((symbol-function 'yes-or-no-p) 'ignore)) | 2675 | (cl-letf (((symbol-function 'yes-or-no-p) 'ignore)) |
| 2676 | (should-error | 2676 | (should-error |
| 2677 | (make-symbolic-link tmp-name1 tmp-name2 0) | 2677 | (make-symbolic-link tmp-name1 tmp-name2 0) |
| @@ -2783,6 +2783,15 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 2783 | (should | 2783 | (should |
| 2784 | (string-equal (file-truename tmp-name1) (file-truename tmp-name2))) | 2784 | (string-equal (file-truename tmp-name1) (file-truename tmp-name2))) |
| 2785 | (should (file-equal-p tmp-name1 tmp-name2)) | 2785 | (should (file-equal-p tmp-name1 tmp-name2)) |
| 2786 | ;; Check relative symlink file name. | ||
| 2787 | (delete-file tmp-name2) | ||
| 2788 | (let ((default-directory tramp-test-temporary-file-directory)) | ||
| 2789 | (make-symbolic-link (file-name-nondirectory tmp-name1) tmp-name2)) | ||
| 2790 | (should (file-symlink-p tmp-name2)) | ||
| 2791 | (should-not (string-equal tmp-name2 (file-truename tmp-name2))) | ||
| 2792 | (should | ||
| 2793 | (string-equal (file-truename tmp-name1) (file-truename tmp-name2))) | ||
| 2794 | (should (file-equal-p tmp-name1 tmp-name2)) | ||
| 2786 | ;; Symbolic links could look like a remote file name. | 2795 | ;; Symbolic links could look like a remote file name. |
| 2787 | ;; They must be quoted then. | 2796 | ;; They must be quoted then. |
| 2788 | (delete-file tmp-name2) | 2797 | (delete-file tmp-name2) |