diff src/testdir/test_lua.vim @ 15997:725255793949 v8.1.1004

patch 8.1.1004: function "luaV_setref()" not covered with tests commit https://github.com/vim/vim/commit/e165f63598b58bfdac0168583aa1ef75fbf7be6d Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Mar 2019 10:00:13 +0100
parents f7130bc17248
children 8ad2cda3757d
line wrap: on
line diff
--- 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