mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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.
6738fd2000
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
a8489308ab
commit
78998bc6c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user