]> git.eshelyaron.com Git - emacs.git/commit
Eglot: robustify eglot-test-basic-symlink test (bug#70036)
authorJoão Távora <joaotavora@gmail.com>
Tue, 23 Apr 2024 13:43:06 +0000 (08:43 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 24 Apr 2024 17:42:34 +0000 (19:42 +0200)
commit6d53722284ffbbe098f47851fec4ead0182acb56
tree2a46daa65056a91f19487b588d7b867cbae873db
parent159fd8922f97ffb72a1c50398b83621b0f89000b
Eglot: robustify eglot-test-basic-symlink test (bug#70036)

The previous version of this test was brittle, unstable and
didn't really fail when supposed to (because we need main.cpp to
not be visited when visiting mainlink.cpp).  This new version is
faster and more secure.

* test/lisp/progmodes/eglot-tests.el (eglot--sniffing): Add to the
jsonrpc-event-hook at the end.
(eglot-test-basic-symlink): Robustify test.

(cherry picked from commit 418cade2390e4d6cd7ead1122e62742282e7b2cd)
test/lisp/progmodes/eglot-tests.el