aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-17 18:44:13 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-17 18:44:26 +0800
commit78998bc6c6dcd6945e39f427520f6851707eb344 (patch)
tree5a6f8493d3be7dd9fc882238394cafdc62295999
parenta8489308ab00f51bff197f29e76276b16ad0d985 (diff)
downloadrneovim-78998bc6c6dcd6945e39f427520f6851707eb344.tar.gz
rneovim-78998bc6c6dcd6945e39f427520f6851707eb344.tar.bz2
rneovim-78998bc6c6dcd6945e39f427520f6851707eb344.zip
vim-patch:8.2.3042: swap file test fails
Problem: Swap file test fails. Solution: Check for a very high process ID instead of one, which should be running. https://github.com/vim/vim/commit/6738fd2000f0bea4d40f4a8651e0e1f4b0503bb3 Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/testdir/test_swap.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_swap.vim b/src/nvim/testdir/test_swap.vim
index 958e4f814f..284579b084 100644
--- a/src/nvim/testdir/test_swap.vim
+++ b/src/nvim/testdir/test_swap.vim
@@ -203,8 +203,8 @@ func Test_swapfile_delete()
" This test won't work as root because root can successfully run kill(1, 0)
if !IsRoot()
" Write the swapfile with a modified PID, now it will be automatically
- " deleted. Process one should never be Vim.
- let swapfile_bytes[24:27] = 0z01000000
+ " deleted. Process 0x3fffffff most likely does not exist.
+ let swapfile_bytes[24:27] = 0zffffff3f
call writefile(swapfile_bytes, swapfile_name)
let s:swapname = ''
split XswapfileText