mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
unittests: Pause garbage collector while executing tests
Temporary (?) workaround for currently failing check_alloc_log tests.
This commit is contained in:
parent
82e5af85c1
commit
b92d6aaf0d
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user