diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-17 12:13:29 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-17 13:51:46 +0800 |
| commit | b0bbcfa2392a0b6c58274baf5facadda6cdff10a (patch) | |
| tree | c3ad4326740c47a6e9619c720bfd94874516079e /src/nvim/testdir/test_ins_complete.vim | |
| parent | 656a1889ee48f5d48d248fb5b6b88e2a113c090f (diff) | |
| download | rneovim-b0bbcfa2392a0b6c58274baf5facadda6cdff10a.tar.gz rneovim-b0bbcfa2392a0b6c58274baf5facadda6cdff10a.tar.bz2 rneovim-b0bbcfa2392a0b6c58274baf5facadda6cdff10a.zip | |
vim-patch:8.2.2424: some tests are known to cause an error with ASAN
Problem: Some tests are known to cause an error with ASAN.
Solution: Add CheckNotAsan.
https://github.com/vim/vim/commit/97202d951685fc4d90085da676a90644cbf72571
Move CheckNotMSWindows to the right place.
Omit test_memory_usage.vim: a Lua test is used for this file.
Diffstat (limited to 'src/nvim/testdir/test_ins_complete.vim')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index 4fcf35c00f..532685b9de 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -628,27 +628,33 @@ func Test_completefunc_error() call setline(1, ['', 'abcd', '']) call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E565:') - " Jump to a different window from the complete function - " TODO: The following test causes an ASAN failure. Once this issue is - " addressed, enable the following test. - "func! CompleteFunc(findstart, base) - " if a:findstart == 1 - " return col('.') - 1 - " endif - " wincmd p - " return ['a', 'b'] - "endfunc - "set completefunc=CompleteFunc - "new - "call assert_fails('exe "normal a\<C-X>\<C-U>"', 'E839:') - "close! - set completefunc& delfunc CompleteFunc delfunc CompleteFunc2 close! endfunc +func Test_completefunc_error_not_asan() + " The following test causes an ASAN failure. + CheckNotAsan + + " Jump to a different window from the complete function + func! CompleteFunc(findstart, base) + if a:findstart == 1 + return col('.') - 1 + endif + wincmd p + return ['a', 'b'] + endfunc + set completefunc=CompleteFunc + new + call assert_fails('exe "normal a\<C-X>\<C-U>"', 'E839:') + close! + + set completefunc& + delfunc CompleteFunc +endfunc + " Test for returning non-string values from 'completefunc' func Test_completefunc_invalid_data() new |