diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-18 22:09:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 22:09:50 +0800 |
commit | 36f0b508c548ba7a6fe916be6c673c4a4738f246 (patch) | |
tree | 2c5721e70a781cca0ff155f60e87847ac383b39e /test/functional/core | |
parent | 700a6fb9d4689ebfeea1139370351eafef74f302 (diff) | |
download | rneovim-36f0b508c548ba7a6fe916be6c673c4a4738f246.tar.gz rneovim-36f0b508c548ba7a6fe916be6c673c4a4738f246.tar.bz2 rneovim-36f0b508c548ba7a6fe916be6c673c4a4738f246.zip |
revert: "jobstart(): Fix hang on non-executable cwd #9204" (#19826)
This reverts commit c4c74c3883aa3122c0c877ca8dd7b26beb5cc4aa.
LibUV already gives an error for this, so this isn't needed.
Diffstat (limited to 'test/functional/core')
-rw-r--r-- | test/functional/core/job_spec.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 8abfa465ab..02ff18bdda 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -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) |