forked from aniani/vim
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>
This commit is contained in:
committed by
Christian Brabandt
parent
46dcd84d24
commit
9fd5d9674f
@@ -14,6 +14,19 @@ set modeline
|
|||||||
set debug=throw
|
set debug=throw
|
||||||
set nomore
|
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()
|
au! SwapExists * call HandleSwapExists()
|
||||||
func HandleSwapExists()
|
func HandleSwapExists()
|
||||||
" Ignore finding a swap file for the test input and output, the user might be
|
" Ignore finding a swap file for the test input and output, the user might be
|
||||||
|
@@ -247,11 +247,6 @@ func RunTheTest(test)
|
|||||||
let g:timeout_start = localtime()
|
let g:timeout_start = localtime()
|
||||||
endif
|
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
|
" Avoid stopping at the "hit enter" prompt
|
||||||
set nomore
|
set nomore
|
||||||
|
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
833,
|
||||||
/**/
|
/**/
|
||||||
832,
|
832,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user