Mercurial > vim
comparison src/testdir/test_crypt.vim @ 33043:ee683d311c05 v9.0.1812
patch 9.0.1812: CI still fails with sodium_mlock error()
Commit: https://github.com/vim/vim/commit/93ebb5e75e564403624314c84c97293427d001d6
Author: Christian Brabandt <cb@256bit.org>
Date: Mon Aug 28 21:17:36 2023 +0200
patch 9.0.1812: CI still fails with sodium_mlock error()
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 28 Aug 2023 21:30:05 +0200 |
parents | d5f7716fadde |
children | bf37770e5952 |
comparison
equal
deleted
inserted
replaced
33042:8a6709a1c219 | 33043:ee683d311c05 |
---|---|
288 throw 'Skipped: sodium_mlock() not possible' | 288 throw 'Skipped: sodium_mlock() not possible' |
289 endtry | 289 endtry |
290 " encrypted using xchacha20 | 290 " encrypted using xchacha20 |
291 call assert_match("\[xchachav2\]", execute(':messages')) | 291 call assert_match("\[xchachav2\]", execute(':messages')) |
292 bw! | 292 bw! |
293 call feedkeys(":verbose :sp Xcrypt_sodium_v2.txt\<CR>sodium\<CR>", 'xt') | 293 try |
294 call feedkeys(":verbose :sp Xcrypt_sodium_v2.txt\<CR>sodium\<CR>", 'xt') | |
295 catch /^Vim\%((\a\+)\)\=:E1230:/ " sodium_mlock() not possible, may happen at Github CI | |
296 throw 'Skipped: sodium_mlock() not possible' | |
297 endtry | |
294 " successfully decrypted | 298 " successfully decrypted |
295 call assert_equal(range(1, 4000)->map( {_, v -> string(v)}), getline(1,'$')) | 299 call assert_equal(range(1, 4000)->map( {_, v -> string(v)}), getline(1,'$')) |
296 call assert_match('xchacha20v2: using default \w\+ "\d\+" for Key derivation.', execute(':messages')) | 300 call assert_match('xchacha20v2: using default \w\+ "\d\+" for Key derivation.', execute(':messages')) |
297 set key= | 301 set key= |
298 w! ++ff=unix | 302 w! ++ff=unix |