summaryrefslogtreecommitdiff
path: root/src/testdir/test_lua.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-10 09:48:59 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-10 09:48:59 +0100
commite165f63598b58bfdac0168583aa1ef75fbf7be6d (patch)
tree768789fc586f3bb872b94e22610523b8aebf2eae /src/testdir/test_lua.vim
parent6edbbd8114320089c0e603e033775d9dd34cb10a (diff)
downloadvim-git-e165f63598b58bfdac0168583aa1ef75fbf7be6d.tar.gz
patch 8.1.1004: function "luaV_setref()" not covered with testsv8.1.1004
Problem: Function "luaV_setref()" not covered with tests. Solution: Add a test. (Dominique Pelle, closes #4089)
Diffstat (limited to 'src/testdir/test_lua.vim')
-rw-r--r--src/testdir/test_lua.vim5
1 files changed, 5 insertions, 0 deletions
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