]> granicus.if.org Git - vim/commitdiff
patch 8.1.1004: function "luaV_setref()" not covered with tests v8.1.1004 v8.1.1005
authorBram Moolenaar <Bram@vim.org>
Sun, 10 Mar 2019 08:48:59 +0000 (09:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 10 Mar 2019 08:48:59 +0000 (09:48 +0100)
Problem:    Function "luaV_setref()" not covered with tests.
Solution:   Add a test. (Dominique Pelle, closes #4089)

src/testdir/test_lua.vim
src/version.c

index 1a5c74f7805b8e4ef68b49e51363202cff4d7040..7fcdad5f030341fe7ef888d93188000b3da17eaa 100644 (file)
@@ -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
index 5b16760327f7f976ded09e9082c83fabc50ce660..0b0ab0c74a2f5e9c5ac213a6c057a1b3d9a65251 100644 (file)
@@ -779,6 +779,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1004,
 /**/
     1003,
 /**/