patch 8.0.1534: C syntax test fails when using gvim
Problem: C syntax test fails when using gvim
Solution: Force running in a terminal. Check that 'background' is correct
even when $COLORFGBG is set.
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index 5131b93..5ebe609 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -24,7 +24,8 @@
hi Normal ctermfg=0 ctermbg=15
let cmd = GetVimCommandClean()
- let cmd .= ' ' . a:arguments
+ " Add -v to have gvim run in the terminal (if possible)
+ let cmd .= ' -v ' . a:arguments
let buf = term_start(cmd, {'curwin': 1, 'term_rows': 20, 'term_cols': 75})
call assert_equal([20, 75], term_getsize(buf))