]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1812: CI still fails with sodium_mlock error() v9.0.1812
authorChristian Brabandt <cb@256bit.org>
Mon, 28 Aug 2023 19:17:36 +0000 (21:17 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 28 Aug 2023 19:17:36 +0000 (21:17 +0200)
Problem:  CI still fails with sodium_mlock error()
Solution: Catch and ignore E1230 error in test_crypt

closes: #12939

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_crypt.vim
src/version.c

index a5e3b1ab0ede86142ae08509a167b53928107fdd..e2eaed889da2ff2fed4b2a4561f5773c9ff3536d 100644 (file)
@@ -290,7 +290,11 @@ func Test_uncrypt_xchacha20v2_2()
   " encrypted using xchacha20
   call assert_match("\[xchachav2\]", execute(':messages'))
   bw!
-  call feedkeys(":verbose :sp Xcrypt_sodium_v2.txt\<CR>sodium\<CR>", 'xt')
+       try
+               call feedkeys(":verbose :sp Xcrypt_sodium_v2.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
   " successfully decrypted
   call assert_equal(range(1, 4000)->map( {_, v -> string(v)}), getline(1,'$'))
   call assert_match('xchacha20v2: using default \w\+ "\d\+" for Key derivation.', execute(':messages'))
index e708bdd4a7968a728a2786432af1ebc5c4c8332a..46f2676a103da5e8fe9acb0b7890e35976b728a6 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1812,
 /**/
     1811,
 /**/