Mercurial > vim
comparison src/testdir/test_recover.vim @ 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 | de319bf98a39 |
children | 9b0c304500cc |
comparison
equal
deleted
inserted
replaced
31120:ede9128915bc | 31121:cc6522f808de |
---|---|
119 | 119 |
120 " pretend we rebooted | 120 " pretend we rebooted |
121 call test_override("uptime", 0) | 121 call test_override("uptime", 0) |
122 sleep 1 | 122 sleep 1 |
123 | 123 |
124 call rename('Xswap', swname) | |
125 call feedkeys('e', 'tL') | 124 call feedkeys('e', 'tL') |
126 redir => editOutput | 125 redir => editOutput |
127 edit Xswaptest | 126 edit Xswaptest |
128 redir END | 127 redir END |
129 call assert_match('E325: ATTENTION', editOutput) | 128 call assert_match('E325: ATTENTION', editOutput) |
320 call delete(sn) | 319 call delete(sn) |
321 endfunc | 320 endfunc |
322 | 321 |
323 " Test for :recover using an encrypted swap file | 322 " Test for :recover using an encrypted swap file |
324 func Test_recover_encrypted_swap_file() | 323 func Test_recover_encrypted_swap_file() |
324 CheckFeature cryptv | |
325 CheckUnix | 325 CheckUnix |
326 | 326 |
327 " Recover an encrypted file from the swap file without the original file | 327 " Recover an encrypted file from the swap file without the original file |
328 new Xfile1 | 328 new Xfile1 |
329 call feedkeys(":X\<CR>vim\<CR>vim\<CR>", 'xt') | 329 call feedkeys(":X\<CR>vim\<CR>vim\<CR>", 'xt') |