]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0438: tests: test_plugin_termdebug is flaky v9.2.0438
authorJesse Rosenstock <jmr@google.com>
Mon, 4 May 2026 19:22:25 +0000 (19:22 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 4 May 2026 19:22:25 +0000 (19:22 +0000)
commit20a124a6e0e2445c500ccc7c496a8fe5d334aed8
tree12055151c7222ecab32ac75ea7535ead55444085
parentbb807ebc8a7a6ad3f3d330cf19ce775cb40a2811
patch 9.2.0438: tests: test_plugin_termdebug is flaky

Problem:  Test_termdebug_tbreak(), Test_termdebug_basic(), and
          Test_termdebug_toggle_break() use synchronous assert_equal()
          to check breakpoint signs immediately after sending commands
          to gdb.  On slow CI (ASAN, ARM64, macOS) gdb may not have
          processed the response yet, causing the sign to be missing.
Solution: Wrap the three assertions in WaitForAssert() to poll until
          the signs are placed, matching the pattern already used by
          the other assertions in the same tests (Jesse Rosenstock).

closes: #20133

Co-authored-by: Gemini
Signed-off-by: Jesse Rosenstock <jmr@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_plugin_termdebug.vim
src/version.c