Skip to content

Commit e67eff2

Browse files
ychinchrisbra
authored andcommitted
patch 9.1.1113: tests: Test_terminal_builtin_without_gui waits 2 seconds
Problem: tests: Test_terminal_builtin_without_gui waits 2 seconds Solution: add --not-a-term to remove the annoying 2s delay in error message when Vim detects that stdio are not from a terminal (Yee Cheng Chin) closes: #16635 Signed-off-by: Yee Cheng Chin <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent b6c900b commit e67eff2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_termcodes.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2750,7 +2750,7 @@ func Test_terminal_builtin_without_gui()
27502750
CheckNotMSWindows
27512751

27522752
" builtin_gui should not be output by :set term=xxx
2753-
let output = systemlist("TERM=dumb " .. v:progpath .. " --clean -c ':set t_ti= t_te=' -c 'set term=xxx' -c ':q!'")
2753+
let output = systemlist("TERM=dumb " .. v:progpath .. " --not-a-term --clean -c ':set t_ti= t_te=' -c 'set term=xxx' -c ':q!'")
27542754
redraw!
27552755
call map(output, {_, val -> trim(val)})
27562756
call assert_equal(-1, index(output, 'builtin_gui'))

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1113,
707709
/**/
708710
1112,
709711
/**/

0 commit comments

Comments
 (0)