diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-28 18:34:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-28 18:34:35 +0100 |
commit | 97202d951685fc4d90085da676a90644cbf72571 (patch) | |
tree | 95bd89e9b4a3f61934a273819e795c49c5191568 /src/testdir/test_ins_complete.vim | |
parent | 61015162ba834541c42da5db6f3fa0ebe1d40e87 (diff) |
patch 8.2.2424: some tests are known to cause an error with ASANv8.2.2424
Problem: Some tests are known to cause an error with ASAN.
Solution: Add CheckNotAsan.
Diffstat (limited to 'src/testdir/test_ins_complete.vim')
-rw-r--r-- | src/testdir/test_ins_complete.vim | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index e59bd207e5..5aa26645bf 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -562,27 +562,33 @@ func Test_completefunc_error() call setline(1, ['', 'abcd', '']) call assert_fails('exe "normal 2G$a\<C-X>\<C-U>"', 'E578:') - " 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 |