Patch 9.0.1118

5 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 31, 2022, 6:45:43 AM12/31/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages