0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

patch 9.0.1534: test for expanding "~" in substitute takes too long

Problem:    Test for expanding "~" in substitute takes too long.
Solution:   Disable the test for now.
This commit is contained in:
Bram Moolenaar
2023-05-09 21:45:47 +01:00
parent 6f37e530d3
commit 916d6dd5b1
2 changed files with 15 additions and 12 deletions

View File

@@ -1415,18 +1415,19 @@ func Test_substitute_short_cmd()
endfunc endfunc
" Check handling expanding "~" resulting in extremely long text. " Check handling expanding "~" resulting in extremely long text.
func Test_substitute_tilde_too_long() " FIXME: disabled, it takes too long to run on CI
enew! #func Test_substitute_tilde_too_long()
# enew!
s/.*/ixxx #
s//~~~~~~~~~AAAAAAA@( # s/.*/ixxx
# s//~~~~~~~~~AAAAAAA@(
" Either fails with "out of memory" or "text too long". #
" This can take a long time. # " Either fails with "out of memory" or "text too long".
call assert_fails('sil! norm &&&&&&&&&', ['E1240:\|E342:']) # " This can take a long time.
# call assert_fails('sil! norm &&&&&&&&&', ['E1240:\|E342:'])
bwipe! #
endfunc # bwipe!
#endfunc
" This should be done last to reveal a memory leak when vim_regsub_both() is " This should be done last to reveal a memory leak when vim_regsub_both() is
" called to evaluate an expression but it is not used in a second call. " called to evaluate an expression but it is not used in a second call.

View File

@@ -695,6 +695,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 */
/**/
1534,
/**/ /**/
1533, 1533,
/**/ /**/