mirror of
https://github.com/neovim/neovim.git
synced 2025-09-09 12:58:16 +00:00
unittests: Always close all pipes
This commit is contained in:
@@ -515,14 +515,15 @@ local function gen_itp(it)
|
|||||||
local err = sc.read(rd, len + 1)
|
local err = sc.read(rd, len + 1)
|
||||||
assert.just_fail(err)
|
assert.just_fail(err)
|
||||||
end
|
end
|
||||||
if allow_failure then
|
|
||||||
local err, emsg = pcall(check)
|
local err, emsg = pcall(check)
|
||||||
|
sc.close(rd)
|
||||||
if not err then
|
if not err then
|
||||||
|
if allow_failure then
|
||||||
io.stderr:write('Errorred out:\n' .. tostring(emsg) .. '\n')
|
io.stderr:write('Errorred out:\n' .. tostring(emsg) .. '\n')
|
||||||
os.execute([[sh -c "source .ci/common/test.sh ; check_core_dumps --delete \"\$(which luajit)\""]])
|
os.execute([[sh -c "source .ci/common/test.sh ; check_core_dumps --delete \"\$(which luajit)\""]])
|
||||||
end
|
|
||||||
else
|
else
|
||||||
check()
|
error(emsg)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user