From e165f63598b58bfdac0168583aa1ef75fbf7be6d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 10 Mar 2019 09:48:59 +0100 Subject: [PATCH] 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) --- src/testdir/test_lua.vim | 5 +++++ src/version.c | 2 ++ 2 files changed, 7 insertions(+) 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, /**/ -- 2.50.1