vim-patch:8.0.1534: C syntax test fails in gvim #10909

Problem:    C syntax test fails when using gvim
Solution:   Force running in a terminal.  Check that 'background' is correct
            even when $COLORFGBG is set.
b7ea7cb8e4
This commit is contained in:
Jan Edmund Lazo
2019-09-01 20:00:50 -04:00
committed by Justin M. Keyes
parent 801fe799ff
commit 938be1e0ab

View File

@@ -520,10 +520,16 @@ func Test_syntax_c()
\ ' }',
\ '}',
\ ], 'Xtest.c')
" This makes the default for 'background' use "dark", check that the
" response to t_RB corrects it to "light".
let $COLORFGBG = '15;0'
let buf = RunVimInTerminal('Xtest.c', {})
call VerifyScreenDump(buf, 'Test_syntax_c_01')
call StopVimInTerminal(buf)
let $COLORFGBG = ''
call delete('Xtest.c')
endfun