aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lisp/progmodes/eglot-tests.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el
index c4b23bfd64e..71d9d7270dd 100644
--- a/test/lisp/progmodes/eglot-tests.el
+++ b/test/lisp/progmodes/eglot-tests.el
@@ -316,9 +316,10 @@ then restored."
316 316
317(defun eglot--clangd-version () 317(defun eglot--clangd-version ()
318 "Report on the clangd version used in various tests." 318 "Report on the clangd version used in various tests."
319 (replace-regexp-in-string 319 (let ((version (shell-command-to-string "clangd --version")))
320 ".*version[[:space:]]+\\(.*\\)" "\\1" 320 (when (string-match "version[[:space:]]+\\([0-9.]*\\)"
321 (car (split-string (shell-command-to-string "clangd --version") "\n")))) 321 version)
322 (match-string 1 version))))
322 323
323 324
324;;; Unit tests 325;;; Unit tests