diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-10 09:48:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-10 09:48:59 +0100 |
commit | e165f63598b58bfdac0168583aa1ef75fbf7be6d (patch) | |
tree | 768789fc586f3bb872b94e22610523b8aebf2eae /src | |
parent | 6edbbd8114320089c0e603e033775d9dd34cb10a (diff) |
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')
-rw-r--r-- | src/testdir/test_lua.vim | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_lua.vim b/src/testdir/test_lua.vim index 1a5c74f780..7fcdad5f03 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 5b16760327..0b0ab0c74a 100644 --- 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, |