To: vim_dev@googlegroups.com Subject: Patch 8.2.2571 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2571 Problem: Test may leave file behind. Solution: Delete the temporary file. Don't profile in the running Vim instance. Files: src/testdir/test_quickfix.vim, src/testdir/test_profile.vim *** ../vim-8.2.2570/src/testdir/test_quickfix.vim 2021-02-14 12:57:32.556655461 +0100 --- src/testdir/test_quickfix.vim 2021-03-05 20:49:47.337502150 +0100 *************** *** 5362,5365 **** --- 5362,5375 ---- call Xqfbuf_update('l') endfunc + func Test_vimgrep_noswapfile() + set noswapfile + call writefile(['one', 'two', 'three'], 'Xgreppie') + vimgrep two Xgreppie + call assert_equal('two', getline('.')) + + call delete('Xgreppie') + set swapfile + endfunc + " vim: shiftwidth=2 sts=2 expandtab *** ../vim-8.2.2570/src/testdir/test_profile.vim 2021-03-03 13:25:59.535913158 +0100 --- src/testdir/test_profile.vim 2021-03-05 20:56:21.008729467 +0100 *************** *** 600,606 **** call writefile(lines, 'Xprofile_crash.vim') call system(GetVimCommandClean() . ' -es -c "so Xprofile_crash.vim" -c q') call assert_equal(0, v:shell_error) ! call CheckScriptSuccess(lines) call delete('Xprofile_crash.vim') call delete('Xprofile_crash.log') endfunc --- 600,606 ---- call writefile(lines, 'Xprofile_crash.vim') call system(GetVimCommandClean() . ' -es -c "so Xprofile_crash.vim" -c q') call assert_equal(0, v:shell_error) ! call assert_true(readfile('Xprofile_crash.log')->len() > 10) call delete('Xprofile_crash.vim') call delete('Xprofile_crash.log') endfunc *** ../vim-8.2.2570/src/version.c 2021-03-05 20:47:39.793723714 +0100 --- src/version.c 2021-03-05 20:50:34.905415100 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2571, /**/ -- A fool must search for a greater fool to find admiration. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///