diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-17 18:20:54 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-17 18:24:28 +0800 |
commit | f97d88a58a2d3e010d9de75815fb89b9cc7b8a3c (patch) | |
tree | b74e99c19147cb23e59cb1a15996bd7ffe7148f9 | |
parent | abe1dd308e1f37bb9b06a85da82e066135b86ff9 (diff) | |
download | rneovim-f97d88a58a2d3e010d9de75815fb89b9cc7b8a3c.tar.gz rneovim-f97d88a58a2d3e010d9de75815fb89b9cc7b8a3c.tar.bz2 rneovim-f97d88a58a2d3e010d9de75815fb89b9cc7b8a3c.zip |
vim-patch:8.2.2016: swap file test is a little flaky
Problem: Swap file test is a little flaky.
Solution: Don't set a byte to a fixed value, increment it.
https://github.com/vim/vim/commit/c6ca9f3a29bfd6f5269749036f79f63ce6289692
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | src/nvim/testdir/test_swap.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_swap.vim b/src/nvim/testdir/test_swap.vim index 7941f78ced..4ab2e0df10 100644 --- a/src/nvim/testdir/test_swap.vim +++ b/src/nvim/testdir/test_swap.vim @@ -435,7 +435,7 @@ func Test_swap_auto_delete() " swap file should be automatically deleted. bwipe! " change the process ID to avoid the "still running" warning - let swapfile_bytes[24] = 0x99 + let swapfile_bytes[24] = swapfile_bytes[24] + 1 call writefile(swapfile_bytes, swapfile_name) edit Xtest.scr " will end up using the same swap file after deleting the existing one @@ -451,7 +451,7 @@ func Test_swap_auto_delete() augroup END " change the host name - let swapfile_bytes[28 + 40] = 0x89 + let swapfile_bytes[28 + 40] = swapfile_bytes[28 + 40] + 2 call writefile(swapfile_bytes, swapfile_name) edit Xtest.scr call assert_equal(1, filereadable(swapfile_name)) |