mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-18 03:40:47 -08:00
Avoid test failures if directory name looks like a regexp
Taken from <https://sources.debian.org/patches/emacs/1:26.1+1-1> * test/lisp/ibuffer-tests.el (ibuffer-filter-inclusion-3): * test/lisp/net/tramp-tests.el (tramp-test42-remote-load-path): Regexp-quote file names to avoid failures with directory names of the form "build/emacs-i87jK3/emacs-26.1+1/...".
This commit is contained in:
parent
80e98568aa
commit
ab8ed41859
2 changed files with 5 additions and 4 deletions
|
|
@ -312,8 +312,8 @@
|
||||||
(funcall create-non-file-buffer "ibuf-test-3.b" :size 50
|
(funcall create-non-file-buffer "ibuf-test-3.b" :size 50
|
||||||
:mode #'text-mode
|
:mode #'text-mode
|
||||||
:include-content "...but a multitude of drops?\n"))
|
:include-content "...but a multitude of drops?\n"))
|
||||||
(dirA (with-current-buffer bufA default-directory))
|
(dirA (regexp-quote (with-current-buffer bufA default-directory)))
|
||||||
(dirB (with-current-buffer bufB default-directory)))
|
(dirB (regexp-quote (with-current-buffer bufB default-directory))))
|
||||||
(should (ibuffer-included-in-filters-p
|
(should (ibuffer-included-in-filters-p
|
||||||
bufA '((basename . "ibuf-test-3"))))
|
bufA '((basename . "ibuf-test-3"))))
|
||||||
(should (ibuffer-included-in-filters-p
|
(should (ibuffer-included-in-filters-p
|
||||||
|
|
|
||||||
|
|
@ -4773,8 +4773,9 @@ process sentinels. They shall not disturb each other."
|
||||||
(string-match
|
(string-match
|
||||||
(format
|
(format
|
||||||
"Loading %s"
|
"Loading %s"
|
||||||
(expand-file-name
|
(regexp-quote
|
||||||
"tramp-cmds" (file-name-directory (locate-library "tramp"))))
|
(expand-file-name
|
||||||
|
"tramp-cmds" (file-name-directory (locate-library "tramp")))))
|
||||||
(shell-command-to-string
|
(shell-command-to-string
|
||||||
(format
|
(format
|
||||||
"%s -batch -Q -L %s -l tramp-sh --eval %s"
|
"%s -batch -Q -L %s -l tramp-sh --eval %s"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue