From: Bram Moolenaar Date: Wed, 22 Jul 2020 20:23:40 +0000 (+0200) Subject: patch 8.2.1273: MS-Windows: terminal test may leave file behind X-Git-Tag: v8.2.1273 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c69950ac17225d07f973b39d5b0eb94291077808;p=vim patch 8.2.1273: MS-Windows: terminal test may leave file behind 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) --- diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 067fa0f09..fcc11565c 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -808,6 +808,13 @@ func Test_terminal_redir_file() 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 diff --git a/src/version.c b/src/version.c index 36951df40..ed8f6c468 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1273, /**/ 1272, /**/