From 562b3fcb05150db45f517a98921cb864092646db Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 2 Jul 2026 21:06:52 +0800 Subject: [PATCH] vim-patch:9.2.0401: tests: still a few flaky tests Problem: tests: still a few flaky tests Solution: Add WaitForAssert to test_messages.vim, use a smaller terminal window for test_tabpanel, add TermWait() in test_messages to handle DECQRM messages. closes: vim/vim#20074 https://github.com/vim/vim/commit/0bc64b19a2e14a51c5a5ee162d7047c53fc30f9c Co-authored-by: Christian Brabandt --- test/old/testdir/test_messages.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/old/testdir/test_messages.vim b/test/old/testdir/test_messages.vim index cd230f48e0..3c1080b5e4 100644 --- a/test/old/testdir/test_messages.vim +++ b/test/old/testdir/test_messages.vim @@ -448,7 +448,7 @@ func Test_mode_cleared_after_silent_message() let buf = RunVimInTerminal('-S XsilentMessageMode', {'rows': 10}) call term_sendkeys(buf, 'v') - call TermWait(buf) + call WaitForAssert({-> assert_match('VISUAL.*\d\+\s\+\d', term_getline(buf, 10))}, 1000) call VerifyScreenDump(buf, 'Test_mode_cleared_after_silent_message_1', {}) call term_sendkeys(buf, 'd') @@ -467,6 +467,8 @@ func Test_echo_verbose_system() CheckNotMac " the macos TMPDIR is too long for snapshot testing let buf = RunVimInTerminal('', {'rows': 10}) + " give it some time to handle DECRQM response + call TermWait(buf, 50) call term_sendkeys(buf, ":4 verbose echo system('seq 20')\") " Note that the screendump is filtered to remove the name of the temp file call VerifyScreenDump(buf, 'Test_verbose_system_1', {})