* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory):
Add test for Bug#29423.
" "
(ls-lisp-format-time file-attr time-index)
" "
- (if (not (memq ?F switches)) ; ls-lisp-classify already did that
+ (if (not (memq ?F switches)) ; ls-lisp-classify-file already did that
(propertize file-name 'dired-filename t)
file-name)
(if (stringp file-type) ; is a symbolic link
(insert-directory tmp-name1 nil)
(goto-char (point-min))
(should (looking-at-p (regexp-quote tmp-name1))))
+ ;; This has been fixed in Emacs 26.1. See Bug#29423.
+ (when (tramp--test-emacs26-p)
+ (with-temp-buffer
+ (insert-directory (file-name-as-directory tmp-name1) nil)
+ (goto-char (point-min))
+ (should
+ (looking-at-p
+ (regexp-quote (file-name-as-directory tmp-name1))))))
(with-temp-buffer
(insert-directory tmp-name1 "-al")
(goto-char (point-min))