Patch 8.2.3042

6 views
Skip to first unread message

Bram Moolenaar

unread,
Jun 23, 2021, 3:44:48 PM6/23/21
to vim...@googlegroups.com

Patch 8.2.3042 (after 8.2.3041)
Problem: Swap file test fails.
Solution: Check for a very high process ID instead of one, which should be
running.
Files: src/testdir/test_swap.vim


*** ../vim-8.2.3041/src/testdir/test_swap.vim 2021-06-06 17:12:43.204322378 +0200
--- src/testdir/test_swap.vim 2021-06-23 21:42:35.758095987 +0200
***************
*** 201,208 ****
" 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
call writefile(swapfile_bytes, swapfile_name)
let s:swapname = ''
split XswapfileText
--- 201,208 ----
" 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 0x3fffffff most likely does not exist.
! let swapfile_bytes[24:27] = 0zffffff3f
call writefile(swapfile_bytes, swapfile_name)
let s:swapname = ''
split XswapfileText
*** ../vim-8.2.3041/src/version.c 2021-06-23 21:13:17.325564860 +0200
--- src/version.c 2021-06-23 21:43:40.673936001 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3042,
/**/

--
One difference between a man and a machine is that a machine is quiet
when well oiled.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages