mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
revert: "jobstart(): Fix hang on non-executable cwd #9204"
This reverts commit c4c74c3883
.
LibUV already gives an error for this, so this isn't needed.
This commit is contained in:
@@ -21,6 +21,7 @@ local nvim_set = helpers.nvim_set
|
||||
local expect_twostreams = helpers.expect_twostreams
|
||||
local expect_msg_seq = helpers.expect_msg_seq
|
||||
local pcall_err = helpers.pcall_err
|
||||
local matches = helpers.matches
|
||||
local Screen = require('test.functional.ui.screen')
|
||||
|
||||
describe('jobs', function()
|
||||
@@ -229,8 +230,8 @@ describe('jobs', function()
|
||||
local dir = 'Xtest_not_executable_dir'
|
||||
mkdir(dir)
|
||||
funcs.setfperm(dir, 'rw-------')
|
||||
eq('Vim(call):E475: Invalid argument: expected valid directory',
|
||||
pcall_err(nvim, 'command', "call jobstart('pwd', {'cwd': '"..dir.."'})"))
|
||||
matches('^Vim%(call%):E903: Process failed to start: permission denied: .*',
|
||||
pcall_err(nvim, 'command', "call jobstart(['pwd'], {'cwd': '"..dir.."'})"))
|
||||
rmdir(dir)
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user