[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 818c0cc9a51: eglot-test-rust-completion-exit-function: Fix fail
From: |
Dmitry Gutov |
Subject: |
emacs-30 818c0cc9a51: eglot-test-rust-completion-exit-function: Fix failure in -Q session |
Date: |
Mon, 9 Sep 2024 21:37:42 -0400 (EDT) |
branch: emacs-30
commit 818c0cc9a51a1d678749404cdacdf640d6f32d6e
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
eglot-test-rust-completion-exit-function: Fix failure in -Q session
* test/lisp/progmodes/eglot-tests.el (eglot--call-with-fixture):
Check for buffer liveness (https://debbugs.gnu.org/72765#29).
(eglot-test-rust-completion-exit-function): Don't expect snippet
expansion to happen (no yasnippet in batch mode).
---
test/lisp/progmodes/eglot-tests.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/test/lisp/progmodes/eglot-tests.el
b/test/lisp/progmodes/eglot-tests.el
index e0168baee54..77b808e01ee 100644
--- a/test/lisp/progmodes/eglot-tests.el
+++ b/test/lisp/progmodes/eglot-tests.el
@@ -136,9 +136,11 @@ directory hierarchy."
(jsonrpc-events-buffer server)))))
(cond (noninteractive
(dolist (buffer buffers)
- (eglot--test-message "contents of `%s':"
(buffer-name buffer))
- (princ (with-current-buffer buffer (buffer-string))
- 'external-debugging-output)))
+ (eglot--test-message "contents of `%s' %S:"
(buffer-name buffer) buffer)
+ (if (buffer-live-p buffer)
+ (princ (with-current-buffer buffer
(buffer-string))
+ 'external-debugging-output)
+ (princ "Killed\n" #'external-debugging-output))))
(t
(eglot--test-message "Preserved for inspection: %s"
(mapconcat #'buffer-name buffers
", "))))))))
@@ -724,7 +726,7 @@ directory hierarchy."
(minibuffer-choose-completion t))
(should
(equal
- "fn test() -> i32 { let v: usize = 1; v.count_ones().1234567890;"
+ "fn test() -> i32 { let v: usize = 1; v.count_ones.1234567890;"
(buffer-string))))))
(ert-deftest eglot-test-basic-xref ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 818c0cc9a51: eglot-test-rust-completion-exit-function: Fix failure in -Q session,
Dmitry Gutov <=