Mercurial > vim
changeset 36453:bef22fb913e6 draft v9.1.0833
patch 9.1.0833: CI: recent ASAN changes do not work for indent tests
Commit: https://github.com/vim/vim/commit/9fd5d9674f1e5392be9dff0ec338e25c05196fe9
Author: Aliaksei Budavei <0x000c70@gmail.com>
Date: Sun Nov 3 09:15:35 2024 +0100
patch 9.1.0833: CI: recent ASAN changes do not work for indent tests
Problem: CI: recent ASAN changes do not work for indent tests
Solution: Move code to runtime/indent/testdir/runtest.vim
(Aliaksei Budavei)
closes: #15981
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 03 Nov 2024 09:30:03 +0100 |
parents | a0d73d6d0f6f |
children | 4da6f11d65f9 |
files | runtime/indent/testdir/runtest.vim src/testdir/runtest.vim src/version.c |
diffstat | 3 files changed, 15 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/indent/testdir/runtest.vim +++ b/runtime/indent/testdir/runtest.vim @@ -14,6 +14,19 @@ set modeline set debug=throw set nomore +" Remember the directory where we started. +let indentDir = getcwd() +cd ../../src/testdir + +" Needed for ValgrindOrAsan(). +source shared.vim +exe 'cd ' .. fnameescape(indentDir) + +if ValgrindOrAsan() + let g:vim_indent = {"searchpair_timeout": 1024} + let g:python_indent = {"searchpair_timeout": 1024} +endif + au! SwapExists * call HandleSwapExists() func HandleSwapExists() " Ignore finding a swap file for the test input and output, the user might be
--- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -247,11 +247,6 @@ func RunTheTest(test) let g:timeout_start = localtime() endif - if ValgrindOrAsan() - let g:vim_indent = {"searchpair_timeout": 1024} - let g:python_indent = {"searchpair_timeout": 1024} - endif - " Avoid stopping at the "hit enter" prompt set nomore