Mercurial > vim
comparison src/testdir/test_crypt.vim @ 32754:71aa45708496 v9.0.1696
patch 9.0.1696: sodium_mlock may still fail in CI
Commit: https://github.com/vim/vim/commit/8878653a441764c0e234c5d7af99a2b3a823bb9b
Author: Christian Brabandt <cb@256bit.org>
Date: Sat Aug 12 09:41:23 2023 +0200
patch 9.0.1696: sodium_mlock may still fail in CI
Problem: sodium_mlock may still fail in CI
Solution: Catch E1230 in testscript and skip test
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 12 Aug 2023 09:45:03 +0200 |
parents | 302582e0da3b |
children | d5f7716fadde |
comparison
equal
deleted
inserted
replaced
32753:62bb6527baf3 | 32754:71aa45708496 |
---|---|
323 set undolevels=100 | 323 set undolevels=100 |
324 normal dd | 324 normal dd |
325 set undolevels=100 | 325 set undolevels=100 |
326 normal dd | 326 normal dd |
327 set undolevels=100 | 327 set undolevels=100 |
328 w! | 328 try |
329 w! | |
330 catch /^Vim\%((\a\+)\)\=:E1230:/ " sodium_mlock() not possible, may happen at Github CI | |
331 throw 'Skipped: sodium_mlock() not possible' | |
332 endtry | |
329 call assert_equal(0, &undofile) | 333 call assert_equal(0, &undofile) |
330 bw! | 334 bw! |
331 call feedkeys(":sp Xcrypt_sodium_undo.txt\<CR>sodium\<CR>", 'xt') | 335 call feedkeys(":sp Xcrypt_sodium_undo.txt\<CR>sodium\<CR>", 'xt') |
332 " should fail | 336 " should fail |
333 norm! u | 337 norm! u |