Patch 9.0.1118
Problem:    Sporadic test failures when using a terminal window.
Solution:   Adjust waiting times. (James McCoy, closes #11763)
Files:      src/testdir/term_util.vim, src/testdir/test_autocmd.vim,
            src/testdir/test_search.vim


*** ../vim-9.0.1117/src/testdir/term_util.vim   2022-11-27 13:51:18.850338772 
+0000
--- src/testdir/term_util.vim   2022-12-31 11:42:08.205553413 +0000
***************
*** 141,146 ****
--- 141,149 ----
  
    call assert_equal("running", term_getstatus(a:buf))
  
+   " Wait for all the pending updates to terminal to complete
+   call TermWait(a:buf)
+ 
    " CTRL-O : works both in Normal mode and Insert mode to start a command 
line.
    " In Command-line it's inserted, the CTRL-U removes it again.
    call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>")
*** ../vim-9.0.1117/src/testdir/test_autocmd.vim        2022-12-22 
18:30:15.085259596 +0000
--- src/testdir/test_autocmd.vim        2022-12-31 11:42:08.205553413 +0000
***************
*** 2393,2399 ****
    call term_sendkeys(buf, ":autocmd User\<CR>")
    call TermWait(buf, 50)
    call term_sendkeys(buf, "G")
-   call TermWait(buf, 50)
  
    call StopVimInTerminal(buf)
  endfunc
--- 2393,2398 ----
*** ../vim-9.0.1117/src/testdir/test_search.vim 2022-11-25 21:13:43.183753030 
+0000
--- src/testdir/test_search.vim 2022-12-31 11:42:08.205553413 +0000
***************
*** 375,381 ****
    else
      let ms = 1
      let min_time = 0.001
!     let max_time = min_time * 10.0
      if RunningWithValgrind()
        let max_time += 0.04  " this can be slow with valgrind
      endif
--- 375,381 ----
    else
      let ms = 1
      let min_time = 0.001
!     let max_time = min_time * 15.0
      if RunningWithValgrind()
        let max_time += 0.04  " this can be slow with valgrind
      endif
*** ../vim-9.0.1117/src/version.c       2022-12-30 21:10:20.665095951 +0000
--- src/version.c       2022-12-31 11:43:50.725703429 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1118,
  /**/

-- 
There are only two hard things in programming: Cache invalidation,
naming things and off-by-one errors.

 /// 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/20221231114536.E1DB11C0AA3%40moolenaar.net.

Raspunde prin e-mail lui