From b907c85fb44b0828866ab06bc3cff8a178aa4a94 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 18 May 2016 22:01:56 -0400 Subject: vim-patch:7.4.1046 Problem: No test coverage for menus. Solution: Load the standard menus and check there is no error. https://github.com/vim/vim/commit/2d6c8002729821acc54a4de41d5c5f3d50594973 --- src/nvim/testdir/Makefile | 1 + src/nvim/testdir/test_menu.vim | 9 +++++++++ src/nvim/version.c | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/nvim/testdir/test_menu.vim (limited to 'src') diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile index 7195c7e632..0e3149b912 100644 --- a/src/nvim/testdir/Makefile +++ b/src/nvim/testdir/Makefile @@ -41,6 +41,7 @@ SCRIPTS := \ NEW_TESTS = \ test_cursor_func.res \ test_help_tagjump.res \ + test_menu.res \ test_viml.res \ test_alot.res diff --git a/src/nvim/testdir/test_menu.vim b/src/nvim/testdir/test_menu.vim new file mode 100644 index 0000000000..be559467c8 --- /dev/null +++ b/src/nvim/testdir/test_menu.vim @@ -0,0 +1,9 @@ +" Test that the system menu can be loaded. + +func Test_load_menu() + try + source $VIMRUNTIME/menu.vim + catch + call assert_false(1, 'error while loading menus: ' . v:exception) + endtry +endfunc diff --git a/src/nvim/version.c b/src/nvim/version.c index 48db7d86ee..a8612e10f9 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -638,7 +638,7 @@ static int included_patches[] = { 1049, 1048, 1047, - // 1046, + 1046, // 1045 NA // 1044 NA // 1043 NA -- cgit