1
0
forked from aniani/vim

patch 8.2.5143: some tests fail when using valgrind

Problem:    Some tests fail when using valgrind. Spurious leak reports.
Solution:   Use WaitForAssert().  Avoid failing fork/exec.  Skip tests where a
            job is killed when running valgrind.
This commit is contained in:
Bram Moolenaar
2022-06-21 17:40:47 +01:00
parent fa04eae5a5
commit 37bb3b111d
5 changed files with 45 additions and 33 deletions

View File

@@ -81,11 +81,9 @@ func Test_imactivatefunc_imstatusfunc_callback_no_breaks_foldopen()
END
call writefile(lines, 'Xscript')
let buf = RunVimInTerminal('-S Xscript', {})
call term_wait(buf)
call assert_notequal('abc', term_getline(buf, 2))
call term_sendkeys(buf, "/abc\n")
call term_wait(buf)
call assert_equal('abc', term_getline(buf, 2))
call WaitForAssert({-> assert_equal('abc', term_getline(buf, 2))})
" clean up
call StopVimInTerminal(buf)