Patch 9.0.1012
Problem: Tests may get stuck in buffer with swap file.
Solution: Bail out when bwipe! doesn't get another buffer.
Files: src/testdir/runtest.vim
*** ../vim-9.0.1011/src/testdir/runtest.vim 2022-12-05 15:50:38.214348283 +0000
--- src/testdir/runtest.vim 2022-12-05 20:46:21.495271280 +0000
***************
*** 368,374 ****
" 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
--- 368,381 ----
" buffer, continue until we end up in an empty no-name buffer without a swap
" file.
while bufname() != '' || execute('swapname') !~ 'No swap file'
! let bn = bufnr()
!
! noswapfile bwipe!
!
! if bn == bufnr()
! " avoid getting stuck in the same buffer
! break
! endif
endwhile
" Check if the test has left any swap files behind. Delete them before
*** ../vim-9.0.1011/src/version.c 2022-12-05 16:23:20.594894902 +0000
--- src/version.c 2022-12-05 20:37:04.911418170 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1012,
/**/
--
hundred-and-one symptoms of being an internet addict:
239. You think "surfing" is something you do on dry land.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///