changeset 19255:04e1a025ef00 v8.2.0186

patch 8.2.0186: a couple of tests may fail when features are missing Commit: https://github.com/vim/vim/commit/705724e430abd10ffdd5f1a2bb5a8f9223ff5cdd Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 31 21:13:42 2020 +0100 patch 8.2.0186: a couple of tests may fail when features are missing Problem: A couple of tests may fail when features are missing. Solution: Check for features. (Dominique Pelle, closes https://github.com/vim/vim/issues/5561)
author Bram Moolenaar <Bram@vim.org>
date Fri, 31 Jan 2020 21:15:04 +0100
parents ddb1b495da27
children 527bdb7f21bc
files src/testdir/test_functions.vim src/testdir/test_highlight.vim src/version.c
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -1999,7 +1999,7 @@ func Test_range()
   set tagfunc=
   
   " term_start()
-  if has('terminal')
+  if has('terminal') && has('termguicolors')
     call assert_fails('call term_start(range(3, 4))', 'E474:')
     let g:terminal_ansi_colors = range(16)
     call assert_fails('call term_start("ls", #{term_finish: "close"})', 'E475:')
--- a/src/testdir/test_highlight.vim
+++ b/src/testdir/test_highlight.vim
@@ -622,6 +622,7 @@ endfunc
 
 func Test_wincolor_listchars()
   CheckScreendump
+  CheckFeature conceal
 
   let lines =<< trim END
 	call setline(1, ["one","\t\tsome random text enough long to show 'extends' and 'precedes' includingnbsps, preceding tabs and trailing spaces    ","three"])
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    186,
+/**/
     185,
 /**/
     184,