mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
refactor(tests): drop os_kill #32401
Also change job tests to use `nvim` instead of random programs like `ping`.
This commit is contained in:
@@ -12,7 +12,6 @@ local command = n.command
|
||||
local insert = n.insert
|
||||
local expect = n.expect
|
||||
local exc_exec = n.exc_exec
|
||||
local os_kill = n.os_kill
|
||||
local pcall_err = t.pcall_err
|
||||
local is_os = t.is_os
|
||||
|
||||
@@ -394,7 +393,7 @@ describe('system()', function()
|
||||
it("with a program that doesn't close stdout will exit properly after passing input", function()
|
||||
local out = eval(string.format("system('%s', 'clip-data')", testprg('streams-test')))
|
||||
assert(out:sub(0, 5) == 'pid: ', out)
|
||||
os_kill(out:match('%d+'))
|
||||
eq(0, vim.uv.kill(assert(tonumber(out:match('%d+'))), 'sigkill'))
|
||||
end)
|
||||
end)
|
||||
|
||||
@@ -538,7 +537,7 @@ describe('systemlist()', function()
|
||||
it("with a program that doesn't close stdout will exit properly after passing input", function()
|
||||
local out = eval(string.format("systemlist('%s', 'clip-data')", testprg('streams-test')))
|
||||
assert(out[1]:sub(0, 5) == 'pid: ', out)
|
||||
os_kill(out[1]:match('%d+'))
|
||||
eq(0, vim.uv.kill(assert(tonumber(out[1]:match('%d+'))), 'sigkill'))
|
||||
end)
|
||||
|
||||
it('powershell w/ UTF-8 text #13713', function()
|
||||
|
Reference in New Issue
Block a user