mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.2068: test for SafeState and SafeStateAgain may fail
Problem: Test for SafeState and SafeStateAgain may fail. Solution: Accept more possible responses
This commit is contained in:
parent
cadbe1b1fb
commit
513537bfff
@ -2242,14 +2242,15 @@ func Test_autocmd_SafeState()
|
|||||||
call writefile(lines, 'XSafeState')
|
call writefile(lines, 'XSafeState')
|
||||||
let buf = RunVimInTerminal('-S XSafeState', #{rows: 6})
|
let buf = RunVimInTerminal('-S XSafeState', #{rows: 6})
|
||||||
|
|
||||||
|
" Sometimes we loop to handle an K_IGNORE
|
||||||
call term_sendkeys(buf, ":echo g:safe\<CR>")
|
call term_sendkeys(buf, ":echo g:safe\<CR>")
|
||||||
call WaitForAssert({-> assert_match('^2 ', term_getline(buf, 6))}, 1000)
|
call WaitForAssert({-> assert_match('^[12] ', term_getline(buf, 6))}, 1000)
|
||||||
|
|
||||||
call term_sendkeys(buf, ":echo g:again\<CR>")
|
call term_sendkeys(buf, ":echo g:again\<CR>")
|
||||||
call WaitForAssert({-> assert_match('^xxxx', term_getline(buf, 6))}, 1000)
|
call WaitForAssert({-> assert_match('^xxxx', term_getline(buf, 6))}, 1000)
|
||||||
|
|
||||||
call term_sendkeys(buf, ":let g:again = ''\<CR>:call CallTimer()\<CR>")
|
call term_sendkeys(buf, ":let g:again = ''\<CR>:call CallTimer()\<CR>")
|
||||||
call term_wait(buf)
|
call term_wait(buf, 50)
|
||||||
call term_sendkeys(buf, ":echo g:again\<CR>")
|
call term_sendkeys(buf, ":echo g:again\<CR>")
|
||||||
call WaitForAssert({-> assert_match('xtx', term_getline(buf, 6))}, 1000)
|
call WaitForAssert({-> assert_match('xtx', term_getline(buf, 6))}, 1000)
|
||||||
|
|
||||||
|
@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2068,
|
||||||
/**/
|
/**/
|
||||||
2067,
|
2067,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user