unittests: Force GC, fix GC failures in typval_spec

This commit is contained in:
ZyX
2017-04-04 18:14:09 +03:00
parent 210b013ce7
commit 271df03fa4
2 changed files with 29 additions and 11 deletions

View File

@@ -632,8 +632,9 @@ local function itp_child(wr, func)
collectgarbage('stop')
child_sethook(wr)
local err, emsg = pcall(func)
debug.sethook()
collectgarbage('restart')
collectgarbage()
debug.sethook()
emsg = tostring(emsg)
sc.write(wr, trace_end_msg)
if not err then