diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-17 18:23:38 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-17 18:24:28 +0800 |
commit | 1b95eaf84bdc5189b435fe98b365b5f120d99c2d (patch) | |
tree | 23b02bccfebfa636385420fae152d89119b987af /src | |
parent | f97d88a58a2d3e010d9de75815fb89b9cc7b8a3c (diff) | |
download | rneovim-1b95eaf84bdc5189b435fe98b365b5f120d99c2d.tar.gz rneovim-1b95eaf84bdc5189b435fe98b365b5f120d99c2d.tar.bz2 rneovim-1b95eaf84bdc5189b435fe98b365b5f120d99c2d.zip |
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 vim/vim#7333)
https://github.com/vim/vim/commit/80d868ec25094615f2531a1e01ed1e729366c3bc
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_swap.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_swap.vim b/src/nvim/testdir/test_swap.vim index 4ab2e0df10..22a4a17c39 100644 --- a/src/nvim/testdir/test_swap.vim +++ b/src/nvim/testdir/test_swap.vim @@ -434,8 +434,9 @@ func Test_swap_auto_delete() " Forget about the file, recreate the swap file, then edit it again. The " swap file should be automatically deleted. bwipe! - " change the process ID to avoid the "still running" warning - let swapfile_bytes[24] = swapfile_bytes[24] + 1 + " Change the process ID to avoid the "still running" warning. Must add four + " for MS-Windows to see it as a different one. + let swapfile_bytes[24] = swapfile_bytes[24] + 4 call writefile(swapfile_bytes, swapfile_name) edit Xtest.scr " will end up using the same swap file after deleting the existing one |