Mercurial > vim
changeset 25010:a4647ee8e163 v8.2.3042
patch 8.2.3042: swap file test fails
Commit: https://github.com/vim/vim/commit/6738fd2000f0bea4d40f4a8651e0e1f4b0503bb3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 23 21:44:06 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Jun 2021 21:45:04 +0200 |
parents | 7cd37c44cad8 |
children | e3abe2f3ad90 |
files | src/testdir/test_swap.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_swap.vim +++ b/src/testdir/test_swap.vim @@ -201,8 +201,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