Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
29248:6a718a4e17ce | 29249:0b47ef4e19b8 |
---|---|
79 call setline(1, ['{{{', 'abc', '}}}']) | 79 call setline(1, ['{{{', 'abc', '}}}']) |
80 %foldclose | 80 %foldclose |
81 END | 81 END |
82 call writefile(lines, 'Xscript') | 82 call writefile(lines, 'Xscript') |
83 let buf = RunVimInTerminal('-S Xscript', {}) | 83 let buf = RunVimInTerminal('-S Xscript', {}) |
84 call term_wait(buf) | |
85 call assert_notequal('abc', term_getline(buf, 2)) | 84 call assert_notequal('abc', term_getline(buf, 2)) |
86 call term_sendkeys(buf, "/abc\n") | 85 call term_sendkeys(buf, "/abc\n") |
87 call term_wait(buf) | 86 call WaitForAssert({-> assert_equal('abc', term_getline(buf, 2))}) |
88 call assert_equal('abc', term_getline(buf, 2)) | |
89 | 87 |
90 " clean up | 88 " clean up |
91 call StopVimInTerminal(buf) | 89 call StopVimInTerminal(buf) |
92 call delete('Xscript') | 90 call delete('Xscript') |
93 endfunc | 91 endfunc |