Skip to content

Commit 9376f5f

Browse files
committed
patch 8.0.0057
Problem: Tests fail without the 'keymap' features. Solution: Check for feature in test.
1 parent d0b5138 commit 9376f5f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/testdir/test_options.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ func Test_signcolumn()
4949
endfunc
5050

5151
func Test_filetype_valid()
52+
if !has('autocmd')
53+
return
54+
endif
5255
set ft=valid_name
5356
call assert_equal("valid_name", &filetype)
5457
set ft=valid-name
@@ -66,6 +69,9 @@ func Test_filetype_valid()
6669
endfunc
6770

6871
func Test_syntax_valid()
72+
if !has('syntax')
73+
return
74+
endif
6975
set syn=valid_name
7076
call assert_equal("valid_name", &syntax)
7177
set syn=valid-name
@@ -83,6 +89,9 @@ func Test_syntax_valid()
8389
endfunc
8490

8591
func Test_keymap_valid()
92+
if !has('keymap')
93+
return
94+
endif
8695
call assert_fails(":set kmp=valid_name", "E544:")
8796
call assert_fails(":set kmp=valid_name", "valid_name")
8897
call assert_fails(":set kmp=valid-name", "E544:")

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
57,
767769
/**/
768770
56,
769771
/**/

0 commit comments

Comments
 (0)