aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-05 07:24:25 +0800
committerGitHub <noreply@github.com>2024-04-05 07:24:25 +0800
commitdc69c475a5804c6c01987722f4cf6298d4e33e64 (patch)
treeb73a72c4fc59435695b53597b2e1741d5655d9a7
parente016f5bee6293d126fde9e8d75a3f02f882e2c81 (diff)
downloadrneovim-dc69c475a5804c6c01987722f4cf6298d4e33e64.tar.gz
rneovim-dc69c475a5804c6c01987722f4cf6298d4e33e64.tar.bz2
rneovim-dc69c475a5804c6c01987722f4cf6298d4e33e64.zip
vim-patch:9.1.0262: Test for TextChanged is flaky with ASAN (#28180)
Problem: Test for TextChanged is flaky with ASAN. Solution: Wait for the file to be non-empty. (zeertzjq) closes: vim/vim#14404 https://github.com/vim/vim/commit/4a65391ca273f2eca84f5ec7bd846693232dfacc
-rw-r--r--test/old/testdir/test_autocmd.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/old/testdir/test_autocmd.vim b/test/old/testdir/test_autocmd.vim
index b932837b1f..254a67fac4 100644
--- a/test/old/testdir/test_autocmd.vim
+++ b/test/old/testdir/test_autocmd.vim
@@ -3912,7 +3912,7 @@ func Test_Changed_ChangedI()
au TextChangedI <buffer> :call TextChangedAutocmd('I')
nnoremap <CR> o<Esc>
- call writefile([''], 'XTextChangedI3')
+ autocmd SafeState * ++once call writefile([''], 'XTextChangedI3')
END
call writefile(before, 'Xinit', 'D')
@@ -3921,6 +3921,7 @@ func Test_Changed_ChangedI()
\ {'term_rows': 10})
call assert_equal('running', term_getstatus(buf))
call WaitForAssert({-> assert_true(filereadable('XTextChangedI3'))})
+ call WaitForAssert({-> assert_equal([''], readfile('XTextChangedI3'))})
" TextChanged should trigger if a mapping enters and leaves Insert mode.
call term_sendkeys(buf, "\<CR>")