diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-17 07:05:37 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-11-17 07:06:52 +0800 |
commit | f6658a1e785a6b603db3166083bef9cc56b65487 (patch) | |
tree | e474d76ead77dc83decee5085a53d94ec35d47f6 | |
parent | d2f2e2725c6f8d3263516e7fdf7655ef1c379172 (diff) | |
download | rneovim-f6658a1e785a6b603db3166083bef9cc56b65487.tar.gz rneovim-f6658a1e785a6b603db3166083bef9cc56b65487.tar.bz2 rneovim-f6658a1e785a6b603db3166083bef9cc56b65487.zip |
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.
https://github.com/vim/vim/commit/916d6dd5b1834293e21a72ef70175aae57e78fba
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | test/old/testdir/test_substitute.vim | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/test/old/testdir/test_substitute.vim b/test/old/testdir/test_substitute.vim index 9f1adda3bf..04cbd36f87 100644 --- a/test/old/testdir/test_substitute.vim +++ b/test/old/testdir/test_substitute.vim @@ -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. |