]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1511: tests: two edit tests change v:testing from 1 to 0 v9.1.1511
authorzeertzjq <zeertzjq@outlook.com>
Sat, 5 Jul 2025 13:39:56 +0000 (15:39 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 5 Jul 2025 13:39:56 +0000 (15:39 +0200)
Problem:  tests: two edit tests change v:testing from 1 to 0.
Solution: Don't change v:testing in these two tests, since it's already
          set to 1 in runtest.vim (zeertzjq).

closes: #17660

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/runtest.vim
src/testdir/test_edit.vim
src/version.c

index f03fe44499e1b0db3afb745ec53fc38364f3784b..b1ffd19609ba09bccb42b239c73537015a8911fc 100644 (file)
@@ -180,6 +180,7 @@ endif
 
 
 " Prepare for calling test_garbagecollect_now().
+" Also avois some delays in Insert mode completion.
 let v:testing = 1
 
 " By default, copy each buffer line into allocated memory, so that valgrind can
index a212e8c5a10ae442483cc3ffdf31c16a69e31718..bde2cb0c8f5ecfb164f41acf453a80bde131cafb 100644 (file)
@@ -709,12 +709,9 @@ func Test_edit_CTRL_K()
   %d
   call setline(1, 'A')
   call cursor(1, 1)
-  let v:testing = 1
   try
     call feedkeys("A\<c-x>\<c-k>\<esc>", 'tnix')
   catch
-    " error sleeps 2 seconds, when v:testing is not set
-    let v:testing = 0
   endtry
 
   call test_override("char_avail", 1)
@@ -962,12 +959,9 @@ func Test_edit_CTRL_T()
   %d
   call setline(1, 'mad')
   call cursor(1, 1)
-  let v:testing = 1
   try
     call feedkeys("A\<c-x>\<c-t>\<esc>", 'tnix')
   catch
-    " error sleeps 2 seconds, when v:testing is not set
-    let v:testing = 0
   endtry
   call assert_equal(['mad'], getline(1, '$'))
   bw!
index 4175c62e851bf0c13ef0d9e46d1ec1003f0f4f40..feedd9268cf95cdc67776769091c6cdb7458dae7 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1511,
 /**/
     1510,
 /**/