mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 16:54:12 +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:
@@ -978,18 +978,6 @@ function M.add_builddir_to_rtp()
|
||||
M.command(string.format([[set rtp+=%s/runtime]], t.paths.test_build_dir))
|
||||
end
|
||||
|
||||
--- Kill (reap) a process by PID.
|
||||
--- @param pid string
|
||||
--- @return boolean?
|
||||
function M.os_kill(pid)
|
||||
return os.execute(
|
||||
(
|
||||
is_os('win') and 'taskkill /f /t /pid ' .. pid .. ' > nul'
|
||||
or 'kill -9 ' .. pid .. ' > /dev/null'
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
--- Create folder with non existing parents
|
||||
--- @param path string
|
||||
--- @return boolean?
|
||||
|
||||
Reference in New Issue
Block a user