Mercurial > vim
view src/testdir/test_terminal_fail.vim @ 18137:5a5e9eed6029 v8.1.2063
patch 8.1.2063: some tests fail when +balloon_eval_term is missing
Commit: https://github.com/vim/vim/commit/1e82a784ace6d2c4dce594dd6156bcb0028bba9e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 21 22:57:06 2019 +0200
patch 8.1.2063: some tests fail when +balloon_eval_term is missing
Problem: Some tests fail when +balloon_eval_term is missing but
_balloon_eval is present. (Dominique Pelle)
Solution: Check the right feature in the test. (closes #4962)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 21 Sep 2019 23:00:04 +0200 |
parents | 8e9e9124c7a2 |
children | c087099e9163 |
line wrap: on
line source
" This test is in a separate file, because it usually causes reports for memory " leaks under valgrind. That is because when fork/exec fails memory is not " freed. Since the process exists right away it's not a real leak. source check.vim CheckFeature terminal source shared.vim func Test_terminal_redir_fails() if has('unix') let buf = term_start('xyzabc', {'err_io': 'file', 'err_name': 'Xfile'}) call term_wait(buf) call WaitFor('len(readfile("Xfile")) > 0') call assert_match('executing job failed', readfile('Xfile')[0]) call WaitFor('!&modified') call delete('Xfile') bwipe endif endfunc