changeset 31121:cc6522f808de v9.0.0895

patch 9.0.0895: file renamed twice in test, missing feature check Commit: https://github.com/vim/vim/commit/780154bf7a07813e474105837c2b5998009d9c71 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Nov 17 15:23:52 2022 +0000 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 #11564)
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Nov 2022 16:30:03 +0100
parents ede9128915bc
children 7da475a0c383
files src/testdir/test_recover.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_recover.vim
+++ b/src/testdir/test_recover.vim
@@ -121,7 +121,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
@@ -322,6 +321,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
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    895,
+/**/
     894,
 /**/
     893,