diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-13 13:13:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-13 13:13:54 +0200 |
commit | f587ef345e37ec5aa4b419e31780a1d951c9f702 (patch) | |
tree | 615b987027b86be3c5f34728fcb98ca6392dbd5e /src/testdir/screendump.vim | |
parent | 1d79ce81e7be20405f0fa9687b37c86a2215e326 (diff) |
patch 8.1.1162: incorrect coverage information; typo in color namev8.1.1162
Problem: Incorrect coverage information; typo in color name.
Solution: Fix the typo. Set environment variables to have a nested Vim
write the coverage info in another directory.
Diffstat (limited to 'src/testdir/screendump.vim')
-rw-r--r-- | src/testdir/screendump.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim index d978942810..4015419233 100644 --- a/src/testdir/screendump.vim +++ b/src/testdir/screendump.vim @@ -55,8 +55,16 @@ func RunVimInTerminal(arguments, options) let cmd = GetVimCommandClean() " Add -v to have gvim run in the terminal (if possible) + " The GCOV_ environment variables cause the Vim running in the terminal to + " write the coverage information in the "nested" directory, to avoid two Vim + " instances try to write to the same coverage info file. let cmd .= ' -v ' . a:arguments - let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols}) + let buf = term_start(cmd, { + \ 'curwin': 1, + \ 'term_rows': rows, + \ 'term_cols': cols, + \ 'env': {'GCOV_PREFIX': 'nested', 'GCOV_PREFIX_STRIP': 99}, + \ }) if &termwinsize == '' " in the GUI we may end up with a different size, try to set it. if term_getsize(buf) != [rows, cols] |