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)

780154bf7a

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
zeertzjq 2022-11-17 23:30:30 +08:00
parent c269b8dcae
commit 7139035bfd

View File

@ -126,7 +126,6 @@ func Test_nocatch_process_still_running()
call test_override("uptime", 0) call test_override("uptime", 0)
sleep 1 sleep 1
call rename('Xswap', swname)
call feedkeys('e', 'tL') call feedkeys('e', 'tL')
redir => editOutput redir => editOutput
edit Xswaptest edit Xswaptest
@ -332,6 +331,7 @@ endfunc
" Test for :recover using an encrypted swap file " Test for :recover using an encrypted swap file
func Test_recover_encrypted_swap_file() func Test_recover_encrypted_swap_file()
CheckFeature cryptv
CheckUnix CheckUnix
" Recover an encrypted file from the swap file without the original file " Recover an encrypted file from the swap file without the original file