1
0
forked from aniani/vim

patch 9.1.0827: CI: tests can be improved

Problem:  CI: tests can be improved
Solution: collect failed indent tests, raise timeout for search()
          functions when using ASAN/Valgrind (Aliaksei Budavei)

ASan-instrumented Vim builds tend to run slower (x2) than
non-instrumented Vim builds and occasionally make indent
tests fail when "search*()" functions time out and give up
further execution.

Reference:
https://github.com/google/sanitizers/wiki/AddressSanitizer

closes: #15974

Co-authored-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Aliaksei Budavei
2024-11-02 15:51:14 +01:00
committed by Christian Brabandt
parent a95d6a3d64
commit f1d83c4c71
7 changed files with 24 additions and 7 deletions

View File

@@ -318,6 +318,14 @@ func RunningWithValgrind()
return GetVimCommand() =~ '\<valgrind\>'
endfunc
func RunningAsan()
return exists("$ASAN_OPTIONS")
endfunc
func ValgrindOrAsan()
return RunningWithValgrind() || RunningAsan()
endfun
" Get the command to run Vim, with --clean instead of "-u NONE".
func GetVimCommandClean()
let cmd = GetVimCommand()