# HG changeset patch # User Bram Moolenaar # Date 1575736203 -3600 # Node ID 7882ccab03dac57bedb25556c7344b40d2e92dcc # Parent 2a003127554e382c715799fbbaf90eab130bdf02 patch 8.1.2405: matchadd_conceal test fails under valgrind Commit: https://github.com/vim/vim/commit/1f9a028def327bd9bbfef375cb1283cd51e04678 Author: Bram Moolenaar Date: Sat Dec 7 17:22:04 2019 +0100 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. diff --git a/src/testdir/test_matchadd_conceal.vim b/src/testdir/test_matchadd_conceal.vim --- a/src/testdir/test_matchadd_conceal.vim +++ b/src/testdir/test_matchadd_conceal.vim @@ -298,12 +298,14 @@ func Test_cursor_column_in_concealed_lin END call writefile(lines, 'Xcolesearch') let buf = RunVimInTerminal('Xcolesearch', {}) + call term_wait(buf, 100) " Jump to something that is beyond the bottom of the window, " so there's a scroll down. call term_sendkeys(buf, ":so %\") + call term_wait(buf, 100) call term_sendkeys(buf, "/expr\") - call term_wait(buf) + call term_wait(buf, 100) " Are the concealed parts of the current line really hidden? let cursor_row = term_scrape(buf, '.')->map({_, e -> e.chars})->join('') @@ -336,7 +338,7 @@ func Test_cursor_column_in_concealed_lin call term_wait(buf) " 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? call assert_equal(1, term_getcursor(buf)[1]) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2405, +/**/ 2404, /**/ 2403,