patch 8.1.1162: incorrect coverage information; typo in color name
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.
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index d978942..4015419 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -55,8 +55,16 @@
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]