diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 15:21:00 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 15:31:21 +0800 |
commit | 045cc185d5d7575515dafebffc3ea3e2a7023e4e (patch) | |
tree | 7dd2baa12ec9642d746b88cd5defdf91fc598bdc /test/old | |
parent | 702a5f0cbb7782b596edce944fe4556046eea35e (diff) | |
download | rneovim-045cc185d5d7575515dafebffc3ea3e2a7023e4e.tar.gz rneovim-045cc185d5d7575515dafebffc3ea3e2a7023e4e.tar.bz2 rneovim-045cc185d5d7575515dafebffc3ea3e2a7023e4e.zip |
vim-patch:8.2.0310: autocmd test fails on a slow system
Problem: Autocmd test fails on a slow system.
Solution: Adjust the expectations. (James McCoy, closes vim/vim#5685)
https://github.com/vim/vim/commit/8fb1b47a5e24892b23c3923a07d8a850d99b14b2
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old')
-rw-r--r-- | test/old/testdir/test_autocmd.vim | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/old/testdir/test_autocmd.vim b/test/old/testdir/test_autocmd.vim index 3ac2b1fa5c..fd95988de0 100644 --- a/test/old/testdir/test_autocmd.vim +++ b/test/old/testdir/test_autocmd.vim @@ -2974,17 +2974,19 @@ func Test_autocmd_SafeState() call writefile(lines, 'XSafeState') let buf = RunVimInTerminal('-S XSafeState', #{rows: 6}) - " Sometimes we loop to handle an K_IGNORE + " Sometimes we loop to handle a K_IGNORE, SafeState may be trigered once or + " more often. call term_sendkeys(buf, ":echo g:safe\<CR>") - call WaitForAssert({-> assert_match('^[12] ', term_getline(buf, 6))}, 1000) + call WaitForAssert({-> assert_match('^\d ', term_getline(buf, 6))}, 1000) + " SafeStateAgain should be invoked at least three times call term_sendkeys(buf, ":echo g:again\<CR>") - call WaitForAssert({-> assert_match('^xxxx', term_getline(buf, 6))}, 1000) + call WaitForAssert({-> assert_match('^xxx', term_getline(buf, 6))}, 1000) call term_sendkeys(buf, ":let g:again = ''\<CR>:call CallTimer()\<CR>") - call term_wait(buf, 50) + call term_wait(buf, 100) call term_sendkeys(buf, ":\<CR>") - call term_wait(buf, 50) + call term_wait(buf, 100) call term_sendkeys(buf, ":echo g:again\<CR>") call WaitForAssert({-> assert_match('xtx', term_getline(buf, 6))}, 1000) |