neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a7f6f0e2ddf90f9c05838e72ffb8c60148b49109
parent 7fc5f6605fb3de361c970a1d22a42a905a072a0c
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu, 22 Sep 2022 20:18:06 +0800

vim-patch:9.0.0539: long message test can be flaky (#20282)

Problem:    Long message test can be flaky.
Solution:   Wait for more prompt instead of ruler.
https://github.com/vim/vim/commit/21d393a12be86126d9326ea0c244d3a101b77151

Comment N/A lines out instead of deleting in buftype tests.
Diffstat:
Msrc/nvim/testdir/test_autocmd.vim | 4++++
Msrc/nvim/testdir/test_functions.vim | 2++
Msrc/nvim/testdir/test_messages.vim | 3++-
3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim @@ -533,7 +533,9 @@ func Test_BufReadCmdNofile() \ 'acwrite', \ 'quickfix', \ 'help', + "\ 'terminal', \ 'prompt', + "\ 'popup', \ ] new somefile exe 'set buftype=' .. val @@ -650,7 +652,9 @@ func Test_BufEnter() \ 'acwrite', \ 'quickfix', \ 'help', + "\ 'terminal', \ 'prompt', + "\ 'popup', \ ] new somefile exe 'set buftype=' .. val diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim @@ -1898,7 +1898,9 @@ func Test_bufadd_bufload() \ ['acwrite', 1], \ ['quickfix', 0], \ ['help', 1], + "\ ['terminal', 0], \ ['prompt', 0], + "\ ['popup', 0], \ ] bwipe! XotherName let buf = bufadd('XotherName') diff --git a/src/nvim/testdir/test_messages.vim b/src/nvim/testdir/test_messages.vim @@ -358,7 +358,8 @@ func Test_quit_long_message() echom range(9999)->join("\x01") END call writefile(content, 'Xtest_quit_message') - let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 6}) + let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 6, wait_for_ruler: 0}) + call WaitForAssert({-> assert_match('^-- More --', term_getline(buf, 6))}) call term_sendkeys(buf, "q") call VerifyScreenDump(buf, 'Test_quit_long_message', {})