mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-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.
916d6dd5b1
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -1416,18 +1416,19 @@ func Test_substitute_short_cmd()
|
||||
endfunc
|
||||
|
||||
" Check handling expanding "~" resulting in extremely long text.
|
||||
func Test_substitute_tilde_too_long()
|
||||
enew!
|
||||
|
||||
s/.*/ixxx
|
||||
s//~~~~~~~~~AAAAAAA@(
|
||||
|
||||
" Either fails with "out of memory" or "text too long".
|
||||
" This can take a long time.
|
||||
call assert_fails('sil! norm &&&&&&&&&', ['E1240:\|E342:'])
|
||||
|
||||
bwipe!
|
||||
endfunc
|
||||
" FIXME: disabled, it takes too long to run on CI
|
||||
#func Test_substitute_tilde_too_long()
|
||||
# enew!
|
||||
#
|
||||
# s/.*/ixxx
|
||||
# s//~~~~~~~~~AAAAAAA@(
|
||||
#
|
||||
# " Either fails with "out of memory" or "text too long".
|
||||
# " This can take a long time.
|
||||
# call assert_fails('sil! norm &&&&&&&&&', ['E1240:\|E342:'])
|
||||
#
|
||||
# bwipe!
|
||||
#endfunc
|
||||
|
||||
" 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.
|
||||
|
Reference in New Issue
Block a user