diff options
| author | Stefan Monnier | 2024-02-07 11:17:35 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2024-02-07 11:17:35 -0500 |
| commit | 12fb298e21d877c772a19fc8f2fec68a40bcda14 (patch) | |
| tree | 2df3f0964019a2e208e48343ab9511a56349ae49 | |
| parent | 2f3c435056dac17242b2d147bc73df8742c3e374 (diff) | |
| download | emacs-12fb298e21d877c772a19fc8f2fec68a40bcda14.tar.gz emacs-12fb298e21d877c772a19fc8f2fec68a40bcda14.zip | |
Prefer \` and \' when matching the beg/end of string
* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case)
(tramp-test01-file-name-syntax): Use more precise regexp
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 489b682d0c3..4a964f0daf0 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -265,8 +265,8 @@ is greater than 10. | |||
| 265 | `(let* ((tramp-verbose (max (or ,verbose 0) (or tramp-verbose 0))) | 265 | `(let* ((tramp-verbose (max (or ,verbose 0) (or tramp-verbose 0))) |
| 266 | (debug-ignored-errors | 266 | (debug-ignored-errors |
| 267 | (append | 267 | (append |
| 268 | '("^make-symbolic-link not supported$" | 268 | '("\\`make-symbolic-link not supported\\'" |
| 269 | "^error with add-name-to-file") | 269 | "\\`error with add-name-to-file") |
| 270 | debug-ignored-errors)) | 270 | debug-ignored-errors)) |
| 271 | inhibit-message) | 271 | inhibit-message) |
| 272 | (unwind-protect | 272 | (unwind-protect |
| @@ -379,7 +379,7 @@ is greater than 10. | |||
| 379 | (let (tramp-mode) | 379 | (let (tramp-mode) |
| 380 | (should-not (tramp-tramp-file-p "/method:user@host:"))) | 380 | (should-not (tramp-tramp-file-p "/method:user@host:"))) |
| 381 | ;; `tramp-ignored-file-name-regexp' suppresses Tramp. | 381 | ;; `tramp-ignored-file-name-regexp' suppresses Tramp. |
| 382 | (let ((tramp-ignored-file-name-regexp "^/method:user@host:")) | 382 | (let ((tramp-ignored-file-name-regexp "\\`/method:user@host:")) |
| 383 | (should-not (tramp-tramp-file-p "/method:user@host:"))) | 383 | (should-not (tramp-tramp-file-p "/method:user@host:"))) |
| 384 | ;; Methods shall be at least two characters, except the | 384 | ;; Methods shall be at least two characters, except the |
| 385 | ;; default method. | 385 | ;; default method. |