aboutsummaryrefslogtreecommitdiff
path: root/test/unit/eval/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-09 04:05:07 +0200
committerGitHub <noreply@github.com>2017-04-09 04:05:07 +0200
commit699e8406b5d57e1ca975af443329d8f24ae1b704 (patch)
tree5eb97eb63e62ebd07fec7ddeffd79dc57f80d1ef /test/unit/eval/helpers.lua
parentcc8f640fb16a4a697e2ad380b9973048d5142a33 (diff)
parent8e519a22ddcad6a38d966a7c340c9fd77d72f392 (diff)
downloadrneovim-699e8406b5d57e1ca975af443329d8f24ae1b704.tar.gz
rneovim-699e8406b5d57e1ca975af443329d8f24ae1b704.tar.bz2
rneovim-699e8406b5d57e1ca975af443329d8f24ae1b704.zip
Merge #6439 from ZyX-I/fix-gc-failures
unittests: Force GC, fix GC failures in typval_spec
Diffstat (limited to 'test/unit/eval/helpers.lua')
-rw-r--r--test/unit/eval/helpers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/eval/helpers.lua b/test/unit/eval/helpers.lua
index fa76113756..5bc482216e 100644
--- a/test/unit/eval/helpers.lua
+++ b/test/unit/eval/helpers.lua
@@ -468,7 +468,7 @@ local function tbl2callback(tbl)
data={funcref=eval.xstrdup(tbl.fref)}}})
elseif tbl.type == 'pt' then
local pt = ffi.gc(ffi.cast('partial_T*',
- eval.xcalloc(1, ffi.sizeof('partial_T'))), eval.partial_unref)
+ eval.xcalloc(1, ffi.sizeof('partial_T'))), nil)
ret = ffi.new('Callback[1]', {{type=eval.kCallbackPartial,
data={partial=populate_partial(pt, tbl.pt, {})}}})
else