# HG changeset patch # User Bram Moolenaar # Date 1580501704 -3600 # Node ID 04e1a025ef003171de7657dcfb3c29d3eebec712 # Parent ddb1b495da2791f6799590863550e6c481ca44d4 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 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) diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim --- 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:') diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim --- 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"]) diff --git a/src/version.c b/src/version.c --- 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,