To: vim_dev@googlegroups.com Subject: Patch 8.2.3440 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3440 Problem: Recover test fails if there is an old swap file. Solution: Delete old swap files. Files: src/testdir/test_recover.vim *** ../vim-8.2.3439/src/testdir/test_recover.vim 2021-06-30 21:30:07.496195277 +0200 --- src/testdir/test_recover.vim 2021-09-14 22:57:06.315820820 +0200 *************** *** 170,175 **** --- 170,181 ---- call assert_match('Unable to read block 0 from .Xfile1.swp', msg) call assert_equal('Xfile1', @%) bw! + + " make sure there are no old swap files laying around + for f in glob('.sw?', 0, 1) + call delete(f) + endfor + " :recover from an empty buffer call assert_fails('recover', 'E305:') call delete('.Xfile1.swp') *** ../vim-8.2.3439/src/version.c 2021-09-14 18:55:47.864129826 +0200 --- src/version.c 2021-09-14 22:51:40.644341170 +0200 *************** *** 757,758 **** --- 757,760 ---- { /* Add new patch number below this line */ + /**/ + 3440, /**/ -- How To Keep A Healthy Level Of Insanity: 18. When leaving the zoo, start running towards the parking lot, yelling "run for your lives, they're loose!!" /// Bram Moolenaar -- Bram@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 ///