From b92d6aaf0dcf98ff5d928b468b67b3b2f8cdfac4 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 2 Oct 2016 22:47:36 +0300 Subject: unittests: Pause garbage collector while executing tests Temporary (?) workaround for currently failing check_alloc_log tests. --- test/unit/helpers.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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)) -- cgit