summaryrefslogtreecommitdiff
path: root/src/testdir/test_autocmd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-07 12:12:43 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-07 12:12:43 +0100
commit983d83ff1cd796ff321074335fa53fbe7ac45a46 (patch)
tree04500912b576c2c91010495406d7e7332053c78f /src/testdir/test_autocmd.vim
parentdfc3db76b9de217542cc9258301c1b4818a51cd0 (diff)
downloadvim-git-983d83ff1cd796ff321074335fa53fbe7ac45a46.tar.gz
patch 8.2.2476: using freed memory when splitting window while closing bufferv8.2.2476
Problem: Using freed memory when using an autocommand to split a window while a buffer is being closed. Solution: Disallow splitting when the buffer has b_locked_split set.
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r--src/testdir/test_autocmd.vim9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index c1d363953..3109f88bb 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -2761,15 +2761,12 @@ endfunc
" Fuzzer found some strange combination that caused a crash.
func Test_autocmd_normal_mess()
- " TODO: why does this hang on Windows?
- CheckNotMSWindows
-
augroup aucmd_normal_test
au BufLeave,BufWinLeave,BufHidden,BufUnload,BufDelete,BufWipeout * norm 7q/qc
augroup END
- o4
+ call assert_fails('o4', 'E1159')
silent! H
- e xx
+ call assert_fails('e xx', 'E1159')
normal G
augroup aucmd_normal_test
@@ -2791,7 +2788,7 @@ func Test_autocmd_vimgrep()
au QuickfixCmdPre,BufNew,BufDelete,BufReadCmd * sb
au QuickfixCmdPre,BufNew,BufDelete,BufReadCmd * q9
augroup END
- " TODO: if this is executed directly valgrind reports errors
+ %bwipe!
call assert_fails('lv?a?', 'E926:')
augroup aucmd_vimgrep