# HG changeset patch # User Bram Moolenaar # Date 1552208413 -3600 # Node ID 725255793949cacadac0519e90dd81a2e0b279d7 # Parent a302b487956b88ed0fbda8b1ca487572047e1060 patch 8.1.1004: function "luaV_setref()" not covered with tests commit https://github.com/vim/vim/commit/e165f63598b58bfdac0168583aa1ef75fbf7be6d Author: Bram Moolenaar Date: Sun Mar 10 09:48:59 2019 +0100 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 https://github.com/vim/vim/issues/4089) diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim --- 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 --- a/src/version.c +++ b/src/version.c @@ -780,6 +780,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1004, +/**/ 1003, /**/ 1002,