]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0384: tests: vt420 terminfo entry may not be found v9.1.0384
authorChristian Brabandt <cb@256bit.org>
Tue, 30 Apr 2024 18:45:09 +0000 (20:45 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 30 Apr 2024 18:45:09 +0000 (20:45 +0200)
Problem:  tests: vt420 terminfo entry may not be found
          (Shane-XB-Qian)
Solution: check existence of terminfo vt420 and infocmp command

related: #14595
closes: #14677

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_terminal3.vim
src/version.c

index 223bcc53781127eeac00c13df921eb1984aa6577..848e3fa4735376a234be0da4e475c6150c4dd5bf 100644 (file)
@@ -935,7 +935,14 @@ func Test_terminal_vt420()
   CheckRunVimInTerminal
   " For Termcap
   CheckUnix
-  let rows=15
+  CheckExecutable infocmp
+  let a = system('infocmp vt420')
+  if v:shell_error
+     " reset v:shell_error
+     let a = system('true')
+     throw 'Skipped: vt420 terminfo not available'
+  endif
+  let rows = 15
   call writefile([':set term=vt420'], 'Xterm420', 'D')
 
   let buf = RunVimInTerminal('-S Xterm420', #{rows: rows})
index 0f7ec89a55872dea85ca589822a2c477e95c3786..739f01fc42daff07eeb7d68e97f8ffe69b0591bd 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    384,
 /**/
     383,
 /**/