Mercurial > vim
diff src/testdir/test_crypt.vim @ 32892:d5f7716fadde v9.0.1755
patch 9.0.1755: CI still fails with sodium mlock error
Commit: https://github.com/vim/vim/commit/25dec33c9bd286eacd1767ce2f5324117132b33a
Author: Christian Brabandt <cb@256bit.org>
Date: Sat Aug 19 22:15:44 2023 +0200
patch 9.0.1755: CI still fails with sodium mlock error
Problem: CI still fails with sodium mlock error
Solution: catch mlock failure
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 Aug 2023 22:30:03 +0200 |
parents | 71aa45708496 |
children | ee683d311c05 |
line wrap: on
line diff
--- a/src/testdir/test_crypt.vim +++ b/src/testdir/test_crypt.vim @@ -332,7 +332,11 @@ func Test_uncrypt_xchacha20_3_persistent endtry call assert_equal(0, &undofile) bw! - call feedkeys(":sp Xcrypt_sodium_undo.txt\<CR>sodium\<CR>", 'xt') + try + call feedkeys(":sp Xcrypt_sodium_undo.txt\<CR>sodium\<CR>", 'xt') + catch /^Vim\%((\a\+)\)\=:E1230:/ " sodium_mlock() not possible, may happen at Github CI + throw 'Skipped: sodium_mlock() not possible' + endtry " should fail norm! u call assert_match('Already at oldest change', execute(':1mess'))