]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1534: test for expanding "~" in substitute takes too long v9.0.1534
authorBram Moolenaar <Bram@vim.org>
Tue, 9 May 2023 20:45:47 +0000 (21:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 9 May 2023 20:45:47 +0000 (21:45 +0100)
Problem:    Test for expanding "~" in substitute takes too long.
Solution:   Disable the test for now.

src/testdir/test_substitute.vim
src/version.c

index 32e2f2785479db402d3ef5fc67d14d7f9e740164..73e6bef58d108b7fced5316996df06c5163a222c 100644 (file)
@@ -1415,18 +1415,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.
index 97530bfa8c977a755d29563327994e4c7e3a575d..166509644304cfa7125d1d88396533e63f11c957 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1534,
 /**/
     1533,
 /**/