Mercurial > vim
diff src/testdir/test_iminsert.vim @ 29249:0b47ef4e19b8 v8.2.5143
patch 8.2.5143: some tests fail when using valgrind
Commit: https://github.com/vim/vim/commit/37bb3b111d08ce420e3cfd6ea3da3ed7428fbed1
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 21 17:40:47 2022 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Jun 2022 18:45:08 +0200 |
parents | 54247d52bee9 |
children | f08ed0738f7a |
line wrap: on
line diff
--- a/src/testdir/test_iminsert.vim +++ b/src/testdir/test_iminsert.vim @@ -81,11 +81,9 @@ func Test_imactivatefunc_imstatusfunc_ca 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)