Skip to content

Commit

Permalink
fix sodium_mlock issue with Github CI
Browse files Browse the repository at this point in the history
Problem:  CI still fails with sodium_mlock error()
Solution: Catch E1230 error in test_crypt and ignore

Signed-off-by: Christian Brabandt <[email protected]>
  • Loading branch information
chrisbra committed Aug 28, 2023
1 parent 85c3a5b commit 4eb82ae
Showing 1 changed file with 5 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 @@ -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'))
Expand Down

0 comments on commit 4eb82ae

Please sign in to comment.