]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0610: global interrupt test fails when run under valgrind v9.0.0610
authorBram Moolenaar <Bram@vim.org>
Tue, 27 Sep 2022 17:05:38 +0000 (18:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 27 Sep 2022 17:05:38 +0000 (18:05 +0100)
Problem:    Global interrupt test fails when run under valgrind.
Solution:   Use TermWait().

src/testdir/test_global.vim
src/version.c

index 75b56e033f821a607339aadfe819e3f8f018a2bf..1f4cb6a65503f2908f5dc9c44a5b05294be77f1d 100644 (file)
@@ -111,6 +111,7 @@ endfunc
 " Test for interrupting :global using Ctrl-C
 func Test_interrupt_global()
   CheckRunVimInTerminal
+
   let lines =<< trim END
     cnoremap ; <Cmd>sleep 10<CR>
     call setline(1, repeat(['foo'], 5))
@@ -120,14 +121,14 @@ func Test_interrupt_global()
 
   call term_sendkeys(buf, ":g/foo/norm :\<C-V>;\<CR>")
   " Wait for :sleep to start
-  call term_wait(buf)
+  call TermWait(buf, 100)
   call term_sendkeys(buf, "\<C-C>")
   call WaitForAssert({-> assert_match('Interrupted', term_getline(buf, 6))}, 1000)
 
   " Also test in Ex mode
   call term_sendkeys(buf, "gQg/foo/norm :\<C-V>;\<CR>")
   " Wait for :sleep to start
-  call term_wait(buf)
+  call TermWait(buf, 100)
   call term_sendkeys(buf, "\<C-C>")
   call WaitForAssert({-> assert_match('Interrupted', term_getline(buf, 5))}, 1000)
 
index d32b92687e798a8848c002f993181d7623dfd257..19a6b5a6d4e98f2c0041ff6ee77820bc2049b728 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    610,
 /**/
     609,
 /**/