1
0
forked from aniani/vim

patch 8.2.2019: swap file test fails on MS-Windows

Problem:    Swap file test fails on MS-Windows.
Solution:   Add four to the process ID. (Ken Takata, closes #7333)
This commit is contained in:
Bram Moolenaar
2020-11-20 09:10:15 +01:00
parent 2ea95b61f4
commit 80d868ec25
2 changed files with 5 additions and 2 deletions

View File

@@ -416,8 +416,9 @@ func Test_swap_auto_delete()
" Forget about the file, recreate the swap file, then edit it again. The " Forget about the file, recreate the swap file, then edit it again. The
" swap file should be automatically deleted. " swap file should be automatically deleted.
bwipe! bwipe!
" change the process ID to avoid the "still running" warning " Change the process ID to avoid the "still running" warning. Must add four
let swapfile_bytes[24] = swapfile_bytes[24] + 1 " for MS-Windows to see it as a different one.
let swapfile_bytes[24] = swapfile_bytes[24] + 4
call writefile(swapfile_bytes, swapfile_name) call writefile(swapfile_bytes, swapfile_name)
edit Xtest.scr edit Xtest.scr
" will end up using the same swap file after deleting the existing one " will end up using the same swap file after deleting the existing one

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2019,
/**/ /**/
2018, 2018,
/**/ /**/