Skip to content

Commit

Permalink
patch 9.0.1696: sodium_mlock may still fail in CI
Browse files Browse the repository at this point in the history
Problem: sodium_mlock may still fail in CI
Solution: Catch E1230 in testscript and skip test

Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
chrisbra committed Aug 12, 2023
1 parent f1cc4d5 commit 8878653
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/testdir/test_crypt.vim
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ func Test_uncrypt_xchacha20_3_persistent_undo()
set undolevels=100
normal dd
set undolevels=100
w!
try
w!
catch /^Vim\%((\a\+)\)\=:E1230:/ " sodium_mlock() not possible, may happen at Github CI
throw 'Skipped: sodium_mlock() not possible'
endtry
call assert_equal(0, &undofile)
bw!
call feedkeys(":sp Xcrypt_sodium_undo.txt\<CR>sodium\<CR>", 'xt')
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1696,
/**/
1695,
/**/
Expand Down

0 comments on commit 8878653

Please sign in to comment.