]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1113: tests: Test_terminal_builtin_without_gui waits 2 seconds v9.1.1113
authorYee Cheng Chin <ychin.git@gmail.com>
Fri, 14 Feb 2025 17:01:25 +0000 (18:01 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 14 Feb 2025 17:01:25 +0000 (18:01 +0100)
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 <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_termcodes.vim
src/version.c

index db98a70b48e4f5eac78c0da2a570b2dd91d6cba9..48e5250a0b57b2eae7eced314389cb52cb4fa288 100644 (file)
@@ -2750,7 +2750,7 @@ func Test_terminal_builtin_without_gui()
   CheckNotMSWindows
 
   " builtin_gui should not be output by :set term=xxx
-  let output = systemlist("TERM=dumb " .. v:progpath .. " --clean -c ':set t_ti= t_te=' -c 'set term=xxx' -c ':q!'")
+  let output = systemlist("TERM=dumb " .. v:progpath .. " --not-a-term --clean -c ':set t_ti= t_te=' -c 'set term=xxx' -c ':q!'")
   redraw!
   call map(output, {_, val -> trim(val)})
   call assert_equal(-1, index(output, 'builtin_gui'))
index e7efb2142f1518ede99b7b6ef069bab29a21a81d..5fe62548ff2244d0ee22926093fbf5138191bc43 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1113,
 /**/
     1112,
 /**/