Patch 8.2.1273

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 22, 2020, 4:24:13 PM7/22/20
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages