# HG changeset patch # User Christian Brabandt # Date 1478274303 -3600 # Node ID ecbd3412f2145e389c18d377b88d7573599e30bb # Parent 238ed91c8c6be13a651e46b6cf150284de8acd18 commit https://github.com/vim/vim/commit/9376f5f482a4d579436bf364778c2d8ab8e2f22d Author: Bram Moolenaar Date: Fri Nov 4 16:41:20 2016 +0100 patch 8.0.0057 Problem: Tests fail without the 'keymap' features. Solution: Check for feature in test. diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -49,6 +49,9 @@ func Test_signcolumn() endfunc func Test_filetype_valid() + if !has('autocmd') + return + endif set ft=valid_name call assert_equal("valid_name", &filetype) set ft=valid-name @@ -66,6 +69,9 @@ func Test_filetype_valid() endfunc func Test_syntax_valid() + if !has('syntax') + return + endif set syn=valid_name call assert_equal("valid_name", &syntax) set syn=valid-name @@ -83,6 +89,9 @@ func Test_syntax_valid() endfunc func Test_keymap_valid() + if !has('keymap') + return + endif call assert_fails(":set kmp=valid_name", "E544:") call assert_fails(":set kmp=valid_name", "valid_name") call assert_fails(":set kmp=valid-name", "E544:") diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 57, +/**/ 56, /**/ 55,