From: Bram Moolenaar Date: Sun, 10 Mar 2019 08:48:59 +0000 (+0100) Subject: patch 8.1.1004: function "luaV_setref()" not covered with tests X-Git-Tag: v8.1.1004 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e165f63598b58bfdac0168583aa1ef75fbf7be6d;p=vim patch 8.1.1004: function "luaV_setref()" not covered with tests Problem: Function "luaV_setref()" not covered with tests. Solution: Add a test. (Dominique Pelle, closes #4089) --- diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim index 1a5c74f78..7fcdad5f0 100644 --- a/src/testdir/test_lua.vim +++ b/src/testdir/test_lua.vim @@ -4,6 +4,11 @@ if !has('lua') finish endif +func TearDown() + " Run garbage collection after each test to exercise luaV_setref(). + call test_garbagecollect_now() +endfunc + " Check that switching to another buffer does not trigger ml_get error. func Test_command_new_no_ml_get_error() new diff --git a/src/version.c b/src/version.c index 5b1676032..0b0ab0c74 100644 --- a/src/version.c +++ b/src/version.c @@ -779,6 +779,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1004, /**/ 1003, /**/