diff options
author | ZyX <kp-pav@yandex.ru> | 2016-10-02 22:47:36 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-11 23:23:30 +0300 |
commit | b92d6aaf0dcf98ff5d928b468b67b3b2f8cdfac4 (patch) | |
tree | 0ff45b49c51ac794906b5bfc40bc260d54e9d7f8 | |
parent | 82e5af85c1c6d61cc8cf33cf16fa1f3f1e3bf2fa (diff) | |
download | rneovim-b92d6aaf0dcf98ff5d928b468b67b3b2f8cdfac4.tar.gz rneovim-b92d6aaf0dcf98ff5d928b468b67b3b2f8cdfac4.tar.bz2 rneovim-b92d6aaf0dcf98ff5d928b468b67b3b2f8cdfac4.zip |
unittests: Pause garbage collector while executing tests
Temporary (?) workaround for currently failing check_alloc_log tests.
-rw-r--r-- | test/unit/helpers.lua | 2 |
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)) |