diff options
| author | João Távora | 2023-03-14 19:43:04 +0000 |
|---|---|---|
| committer | João Távora | 2023-03-14 19:59:12 +0000 |
| commit | 2957985b541d2d9cd717552c0f6ff04b9028577c (patch) | |
| tree | 618b745a2f93ddeeb4beb470d33b539b393baf1a /test | |
| parent | 2d835d64ba339bb375f0d55c4679149d6da3f209 (diff) | |
| download | emacs-2957985b541d2d9cd717552c0f6ff04b9028577c.tar.gz emacs-2957985b541d2d9cd717552c0f6ff04b9028577c.zip | |
Check before using bleeding edge ERT sym in Eglot tests
Else, these tests won't run on Emacs versions that Eglot runs on, like
26.3.
* test/lisp/progmodes/eglot-tests.el
(eglot--call-with-tramp-test): check for
ert-remote-temporary-file-directory before using.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/progmodes/eglot-tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el index 7a90d68d213..9cb6befa993 100644 --- a/test/lisp/progmodes/eglot-tests.el +++ b/test/lisp/progmodes/eglot-tests.el | |||
| @@ -1262,7 +1262,9 @@ macro will assume it exists." | |||
| 1262 | (let* ((tramp-remote-path (cons 'tramp-own-remote-path tramp-remote-path)) | 1262 | (let* ((tramp-remote-path (cons 'tramp-own-remote-path tramp-remote-path)) |
| 1263 | (tramp-histfile-override t) | 1263 | (tramp-histfile-override t) |
| 1264 | (tramp-verbose 1) | 1264 | (tramp-verbose 1) |
| 1265 | (temporary-file-directory ert-remote-temporary-file-directory) | 1265 | (temporary-file-directory |
| 1266 | (or (bound-and-true-p ert-remote-temporary-file-directory) | ||
| 1267 | temporary-file-directory)) | ||
| 1266 | (default-directory temporary-file-directory)) | 1268 | (default-directory temporary-file-directory)) |
| 1267 | ;; We must check the remote LSP server. So far, just "clangd" is used. | 1269 | ;; We must check the remote LSP server. So far, just "clangd" is used. |
| 1268 | (unless (executable-find "clangd" 'remote) | 1270 | (unless (executable-find "clangd" 'remote) |