From 4eb82ae0c1c86f0024bd29978edb3c192026250e Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 28 Aug 2023 08:18:49 +0200 Subject: [PATCH] fix sodium_mlock issue with Github CI Problem: CI still fails with sodium_mlock error() Solution: Catch E1230 error in test_crypt and ignore Signed-off-by: Christian Brabandt --- src/testdir/test_crypt.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/testdir/test_crypt.vim b/src/testdir/test_crypt.vim index a5e3b1ab0ede8..e2eaed889da2f 100644 --- a/src/testdir/test_crypt.vim +++ b/src/testdir/test_crypt.vim @@ -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\sodium\", 'xt') + try + call feedkeys(":verbose :sp Xcrypt_sodium_v2.txt\sodium\", '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'))