From 7139035bfd90698ce7214b507b2f8a7766398a68 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 17 Nov 2022 23:30:30 +0800 Subject: [PATCH] vim-patch:9.0.0895: file renamed twice in test, missing feature check Problem: File renamed twice in test; missing feature check. Solution: Remove a rename() call. Add check for cryptv feature. (closes vim/vim#11564) https://github.com/vim/vim/commit/780154bf7a07813e474105837c2b5998009d9c71 Co-authored-by: zeertzjq --- src/nvim/testdir/test_recover.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/testdir/test_recover.vim b/src/nvim/testdir/test_recover.vim index f4710c4357..92e22687af 100644 --- a/src/nvim/testdir/test_recover.vim +++ b/src/nvim/testdir/test_recover.vim @@ -126,7 +126,6 @@ func Test_nocatch_process_still_running() call test_override("uptime", 0) sleep 1 - call rename('Xswap', swname) call feedkeys('e', 'tL') redir => editOutput edit Xswaptest @@ -332,6 +331,7 @@ endfunc " Test for :recover using an encrypted swap file func Test_recover_encrypted_swap_file() + CheckFeature cryptv CheckUnix " Recover an encrypted file from the swap file without the original file