diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-05 15:50:41 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-05 15:50:41 +0000 |
commit | 23526d2539e8679ea8df14e3a018101dedc3f391 (patch) | |
tree | f69bf382a5d0a5087da5efdefa87506eb61157b6 /src/testdir/test_autocmd.vim | |
parent | 72b5b0d51aa9ddf8d338a5a133a667a3c2392ae1 (diff) |
patch 9.0.1010: stray warnings for existing swap filesv9.0.1010
Problem: Stray warnings for existing swap files.
Solution: Wipe out the buffer until it has no name and no swap file.
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 593e56819c..2df70b4df7 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -578,6 +578,8 @@ func Test_WinScrolled_long_wrapped() call term_sendkeys(buf, '$') call term_sendkeys(buf, ":echo g:scrolled\<CR>") call WaitForAssert({-> assert_match('^3 ', term_getline(buf, 6))}, 1000) + + call StopVimInTerminal(buf) endfunc func Test_WinClosed() @@ -3162,7 +3164,7 @@ func Test_autocmd_FileReadCmd() \ 'v:cmdarg = ++ff=mac', \ 'v:cmdarg = ++enc=utf-8'], getline(1, '$')) - close! + bwipe! augroup FileReadCmdTest au! augroup END |