From 2d6c8002729821acc54a4de41d5c5f3d50594973 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 3 Jan 2016 23:31:24 +0100 Subject: [PATCH] patch 7.4.1046 Problem: No test coverage for menus. Solution: Load the standard menus and check there is no error. --- src/testdir/test_alot.vim | 1 + src/testdir/test_menu.vim | 9 +++++++++ src/version.c | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 src/testdir/test_menu.vim diff --git a/src/testdir/test_alot.vim b/src/testdir/test_alot.vim index 20add03ce..9800afce7 100644 --- a/src/testdir/test_alot.vim +++ b/src/testdir/test_alot.vim @@ -3,6 +3,7 @@ source test_backspace_opt.vim source test_lispwords.vim +source test_menu.vim source test_searchpos.vim source test_set.vim source test_sort.vim diff --git a/src/testdir/test_menu.vim b/src/testdir/test_menu.vim new file mode 100644 index 000000000..be559467c --- /dev/null +++ b/src/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/version.c b/src/version.c index 86f50c33e..499387fdf 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1046, /**/ 1045, /**/ -- 2.50.1