aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/unit/helpers.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index 482bedd6c0..d17b423e4f 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -234,7 +234,9 @@ local function gen_itp(it)
local pid = posix.fork()
if pid == 0 then
posix.close(rd)
+ collectgarbage('stop')
local err, emsg = pcall(func)
+ collectgarbage('restart')
emsg = tostring(emsg)
if not err then
posix.write(wr, ('-\n%05u\n%s'):format(#emsg, emsg))