To: vim_dev@googlegroups.com Subject: Patch 8.2.1273 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1273 Problem: MS-Windows: terminal test may leave file behind. Solution: Wait a moment for process to end before deleting the file. (Taro Muraoka, closes #6513) Files: src/testdir/test_terminal.vim *** ../vim-8.2.1272/src/testdir/test_terminal.vim 2020-07-11 22:14:54.318422203 +0200 --- src/testdir/test_terminal.vim 2020-07-22 22:21:25.285790062 +0200 *************** *** 808,813 **** --- 808,820 ---- endif let g:job = term_getjob(buf) call WaitForAssert({-> assert_equal("dead", job_status(g:job))}) + + if has('win32') + " On Windows we cannot delete a file being used by a process. When + " job_status() returns "dead", the process remains for a short time. + " Just wait for a moment. + sleep 50m + endif call delete('Xfile') bwipe *** ../vim-8.2.1272/src/version.c 2020-07-22 21:45:10.529629648 +0200 --- src/version.c 2020-07-22 22:23:09.213420128 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1273, /**/ -- Time is money. Especially if you make clocks. /// 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 ///