Test_clientserver_x11_registry_loose_name(), added in patch 9.2.1113, asserts that its
--remote-send succeeds:
" Loose match: "XVIMTESTREG" against a registered "XVIMTESTREG1" whose " window id is not hex. call system(cmd .. ' --servername ' .. name .. ' --remote-send x') call assert_equal(0, v:shell_error)
That send failing is the point of the test. The xprop call above it replaces the whole
VimRegistry property with one entry whose window id is zz, which unregisters the server the
test started, so the send finds nothing, reports E247 and exits 1. On a display where the test
runs, the assertion fails every time:
Found errors in Test_clientserver_x11_registry_loose_name():
line 31: Expected 0 but got 1
Flaky test failed too often, giving up
CI does not see it. Every X11 test in test_clientserver.vim is skipped there —
Check_X11_Connection() calls CheckX11(), which refuses a display when $WAYLAND_DISPLAY is
set, and both ci-linux.yml and ci-linux_asan.yml set it. In the run for 9.2.1113, all six
report SKIPPED …: not pure X11 environment, Test_client_server() included; the Windows and
macOS jobs skip on x11 feature missing. So the failure only shows up for someone running the
suite on a plain X11 session.
Drop the assertion. The test deliberately asserts nothing — it walks the path so a sanitizer
build notices a regression — and this line asserts the opposite of what the path does.
Sorry: the test is mine, from #21320, and the assertion is the one line of it I did not write, so
I should have re-run the merged version before it landed rather than only what I submitted.
https://github.com/vim/vim/pull/21333
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Ah thanks. Yes I added the assert, because I thought we wouldn't see the ASAN failure from ASAN.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()