Problem: Stray warnings for existing swap files.
Solution: Wipe out the buffer until it has no name and no swap file.
call add(s:messages, message)
let s:done += 1
+ " May be editing some buffer, wipe it out. Then we may end up in another
+ " buffer, continue until we end up in an empty no-name buffer without a swap
+ " file.
+ while bufname() != '' || execute('swapname') !~ 'No swap file'
+ bwipe!
+ endwhile
+
" Check if the test has left any swap files behind. Delete them before
" running tests again, they might interfere.
let swapfiles = s:GetSwapFileList()
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()
\ 'v:cmdarg = ++ff=mac',
\ 'v:cmdarg = ++enc=utf-8'], getline(1, '$'))
- close!
+ bwipe!
augroup FileReadCmdTest
au!
augroup END
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1010,
/**/
1009,
/**/