Christian Brabandt <[email protected]> wrote:
> function RunTheTest[34]..Test_search_cmdline8 line 19: Expected 'abb vim vim
> vi' but got ''
> function RunTheTest[34]..Test_search_cmdline8 line 20: Expected 'vimvivim'
> but got ''
>
> Was this just because the wait was too short?
I can reproduce the same error in Test_search_cmdline8 when building
vim-8.0.1257 with gcc-7 + asan. Increasing the wait duration from 200
ms to 600 ms as in attached patch fixes it for me (500 ms fixed it almost
all the time, but not all the times). But if I understand correctly, James's
PR fixes it without waiting for a fixed delay, which sounds better.
Regards
Dominique
--
--
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].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim
index 37661c3..b5ad008 100644
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -484,7 +484,7 @@ func Test_search_cmdline8()
call writefile(lines, 'Xsearch.txt')
let g:buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', 'Xsearch.txt'], {'term_rows': 3})
- call term_wait(g:buf, 200)
+ call term_wait(g:buf, 600)
call assert_equal(lines[0], term_getline(g:buf, 1))
call assert_equal(lines[1], term_getline(g:buf, 2))