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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221205205832.215121C1D84%40moolenaar.net.