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 | |
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')
-rw-r--r-- | src/testdir/dumps/Test_terminal_all_ansi_colors.dump | 2 | ||||
-rw-r--r-- | src/testdir/screendump.vim | 10 | ||||
-rw-r--r-- | src/testdir/test_terminal.vim | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/src/testdir/dumps/Test_terminal_all_ansi_colors.dump b/src/testdir/dumps/Test_terminal_all_ansi_colors.dump index 2799396191..40e3ad900f 100644 --- a/src/testdir/dumps/Test_terminal_all_ansi_colors.dump +++ b/src/testdir/dumps/Test_terminal_all_ansi_colors.dump @@ -1,4 +1,4 @@ ->A+0#0000001#e0e0e08@1|B+0#e000002#ff404010@1|C+0#00e0003#40ff4011@1|D+0#af5f00255#ffffff0@1|E+0#0000e05#4040ff13@1|F+0#e000e06#ff40ff14@1|G+0#00e0e07#40ffff15@1|H+0#e0e0e08#0000001@1|I+0#6c6c6c255#ffffff16@1|J+0#ff404010#e000002@1|K+0#40ff4011#00e0003@1|L+0#ffff4012#af5f00255@1|M+0#4040ff13#0000e05@1|N+0#ff40ff14#e000e06@1|O+0#40ffff15#00e0e07@1|P+0#ffffff16#6c6c6c255@1| +0#0000000#ffffff0@42 +>A+0#0000001#e0e0e08@1|B+0#e000002#ff404010@1|C+0#00e0003#40ff4011@1|D+0#af5f00255#ffff4012@1|E+0#0000e05#4040ff13@1|F+0#e000e06#ff40ff14@1|G+0#00e0e07#40ffff15@1|H+0#e0e0e08#0000001@1|I+0#6c6c6c255#ffffff16@1|J+0#ff404010#e000002@1|K+0#40ff4011#00e0003@1|L+0#ffff4012#af5f00255@1|M+0#4040ff13#0000e05@1|N+0#ff40ff14#e000e06@1|O+0#40ffff15#00e0e07@1|P+0#ffffff16#6c6c6c255@1| +0#0000000#ffffff0@42 @2| +0#4040ff13&@72 |~| @73 |~| @73 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] diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 7268480b07..b685cd682c 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1495,7 +1495,7 @@ func Test_terminal_all_ansi_colors() \ 'hi Tblack ctermfg=Black ctermbg=Lightgrey', \ 'hi Tdarkred ctermfg=Darkred ctermbg=Red', \ 'hi Tdarkgreen ctermfg=Darkgreen ctermbg=Green', - \ 'hi Tbrown ctermfg=Brown ctermbg=Yello', + \ 'hi Tbrown ctermfg=Brown ctermbg=Yellow', \ 'hi Tdarkblue ctermfg=Darkblue ctermbg=Blue', \ 'hi Tdarkmagenta ctermfg=Darkmagenta ctermbg=Magenta', \ 'hi Tdarkcyan ctermfg=Darkcyan ctermbg=Cyan', |