Patch 9.0.0610
Problem:    Global interrupt test fails when run under valgrind.
Solution:   Use TermWait().
Files:      src/testdir/test_global.vim


*** ../vim-9.0.0609/src/testdir/test_global.vim 2022-07-26 17:48:09.912150777 
+0100
--- src/testdir/test_global.vim 2022-09-27 18:03:35.275348142 +0100
***************
*** 111,116 ****
--- 111,117 ----
  " 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,133 ****
  
    call term_sendkeys(buf, ":g/foo/norm :\<C-V>;\<CR>")
    " Wait for :sleep to start
!   call term_wait(buf)
    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 term_sendkeys(buf, "\<C-C>")
    call WaitForAssert({-> assert_match('Interrupted', term_getline(buf, 5))}, 
1000)
  
--- 121,134 ----
  
    call term_sendkeys(buf, ":g/foo/norm :\<C-V>;\<CR>")
    " Wait for :sleep to start
!   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 TermWait(buf, 100)
    call term_sendkeys(buf, "\<C-C>")
    call WaitForAssert({-> assert_match('Interrupted', term_getline(buf, 5))}, 
1000)
  
*** ../vim-9.0.0609/src/version.c       2022-09-27 17:47:09.336830388 +0100
--- src/version.c       2022-09-27 18:05:14.403121960 +0100
***************
*** 701,702 ****
--- 701,704 ----
  {   /* Add new patch number below this line */
+ /**/
+     610,
  /**/

-- 
Some of the well known MS-Windows errors:
        ETIME           Wrong time, wait a little while
        ECRASH          Try again...
        EDETECT         Unable to detect errors
        EOVER           You lost!  Play another game?
        ENOCLUE         Eh, what did you want?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220927170609.555391C0413%40moolenaar.net.

Raspunde prin e-mail lui