vim-patch:8.1.2405: matchadd_conceal test fails under valgrind

Problem:    matchadd_conceal test fails under valgrind.
Solution:   Use WaitForAssert() and wait a bit longer.
1f9a028def
This commit is contained in:
Jan Edmund Lazo
2020-10-08 07:54:46 -04:00
parent 818e794f12
commit 56bb5993d9

View File

@@ -294,12 +294,14 @@ func Test_cursor_column_in_concealed_line_after_window_scroll()
END END
call writefile(lines, 'Xcolesearch') call writefile(lines, 'Xcolesearch')
let buf = RunVimInTerminal('Xcolesearch', {}) let buf = RunVimInTerminal('Xcolesearch', {})
call term_wait(buf, 100)
" Jump to something that is beyond the bottom of the window, " Jump to something that is beyond the bottom of the window,
" so there's a scroll down. " so there's a scroll down.
call term_sendkeys(buf, ":so %\<CR>") call term_sendkeys(buf, ":so %\<CR>")
call term_wait(buf, 100)
call term_sendkeys(buf, "/expr\<CR>") call term_sendkeys(buf, "/expr\<CR>")
call term_wait(buf) call term_wait(buf, 100)
" Are the concealed parts of the current line really hidden? " Are the concealed parts of the current line really hidden?
let cursor_row = term_scrape(buf, '.')->map({_, e -> e.chars})->join('') let cursor_row = term_scrape(buf, '.')->map({_, e -> e.chars})->join('')
@@ -332,7 +334,7 @@ func Test_cursor_column_in_concealed_line_after_leftcol_change()
call term_wait(buf) call term_wait(buf)
" Are the concealed parts of the current line really hidden? " Are the concealed parts of the current line really hidden?
call assert_equal('c', term_getline(buf, '.')) call WaitForAssert({-> assert_equal('c', term_getline(buf, '.'))})
" BugFix check: Is the window's cursor column properly updated for conceal? " BugFix check: Is the window's cursor column properly updated for conceal?
call assert_equal(1, term_getcursor(buf)[1]) call assert_equal(1, term_getcursor(buf)[1])