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>
diff --git a/src/testdir/test_crypt.vim b/src/testdir/test_crypt.vim
index 944f216..68e7ca1 100644
--- a/src/testdir/test_crypt.vim
+++ b/src/testdir/test_crypt.vim
@@ -325,7 +325,11 @@
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')
diff --git a/src/version.c b/src/version.c
index 57830dd..5baeaf3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1696,
+/**/
1695,
/**/
1694,