]> granicus.if.org Git - vim/commitdiff
patch 8.0.0057 v8.0.0057
authorBram Moolenaar <Bram@vim.org>
Fri, 4 Nov 2016 15:41:20 +0000 (16:41 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 4 Nov 2016 15:41:20 +0000 (16:41 +0100)
Problem:    Tests fail without the 'keymap' features.
Solution:   Check for feature in test.

src/testdir/test_options.vim
src/version.c

index dee435c38af9dff0c93c265764be96433798bc5c..3b6f6625f6aef7ce3196721af505bff6f4b04212 100644 (file)
@@ -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:")
index f63041ec4c04ced8706003ff94b4768cda69065a..a6979fe1ae7b969989d16b9bdcaf616bd2b238cc 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    57,
 /**/
     56,
 /**/