mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.1.0262: Test for TextChanged is flaky with ASAN
Problem: Test for TextChanged is flaky with ASAN. Solution: Wait for the file to be non-empty. (zeertzjq) closes: #14404 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
3e33650b3a
commit
4a65391ca2
@@ -4486,7 +4486,7 @@ func Test_Changed_ChangedI()
|
|||||||
au TextChangedI <buffer> :call TextChangedAutocmd('I')
|
au TextChangedI <buffer> :call TextChangedAutocmd('I')
|
||||||
|
|
||||||
nnoremap <CR> o<Esc>
|
nnoremap <CR> o<Esc>
|
||||||
call writefile([''], 'XTextChangedI3')
|
autocmd SafeState * ++once call writefile([''], 'XTextChangedI3')
|
||||||
END
|
END
|
||||||
|
|
||||||
call writefile(before, 'Xinit', 'D')
|
call writefile(before, 'Xinit', 'D')
|
||||||
@@ -4495,6 +4495,7 @@ func Test_Changed_ChangedI()
|
|||||||
\ {'term_rows': 10})
|
\ {'term_rows': 10})
|
||||||
call assert_equal('running', term_getstatus(buf))
|
call assert_equal('running', term_getstatus(buf))
|
||||||
call WaitForAssert({-> assert_true(filereadable('XTextChangedI3'))})
|
call WaitForAssert({-> assert_true(filereadable('XTextChangedI3'))})
|
||||||
|
call WaitForAssert({-> assert_equal([''], readfile('XTextChangedI3'))})
|
||||||
|
|
||||||
" TextChanged should trigger if a mapping enters and leaves Insert mode.
|
" TextChanged should trigger if a mapping enters and leaves Insert mode.
|
||||||
call term_sendkeys(buf, "\<CR>")
|
call term_sendkeys(buf, "\<CR>")
|
||||||
|
@@ -704,6 +704,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 */
|
||||||
|
/**/
|
||||||
|
262,
|
||||||
/**/
|
/**/
|
||||||
261,
|
261,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user