diff options
author | Daniel Hahler <git@thequod.de> | 2019-12-24 07:53:56 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-12-24 07:53:56 +0100 |
commit | b3686b1597ea202de464df72a88fb5c76fd1b814 (patch) | |
tree | 558e4c3a3eadc2e4338cbe24fd785b2bf774a5fd /test/functional/provider/python3_spec.lua | |
parent | 53fe877a97dbe5e5b5291fd1361123fc1b1da054 (diff) | |
download | rneovim-b3686b1597ea202de464df72a88fb5c76fd1b814.tar.gz rneovim-b3686b1597ea202de464df72a88fb5c76fd1b814.tar.bz2 rneovim-b3686b1597ea202de464df72a88fb5c76fd1b814.zip |
system(), jobstart(): raise error on non-executable #11234
* tv_to_argv: error when cmd is not executable
Callers always assume that emsg was emitted:
- https://github.com/neovim/neovim/blob/57fbf288/src/nvim/eval.c#L12509
- https://github.com/neovim/neovim/blob/57fbf288/src/nvim/eval.c#L17923
- https://github.com/neovim/neovim/blob/57fbf288/src/nvim/eval.c#L18202
* test/functional/provider: display reason from missing_provider
* provider#node#Detect: skip / handle non-existing node executable
Diffstat (limited to 'test/functional/provider/python3_spec.lua')
-rw-r--r-- | test/functional/provider/python3_spec.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/provider/python3_spec.lua b/test/functional/provider/python3_spec.lua index b319d5e948..d254edc7d5 100644 --- a/test/functional/provider/python3_spec.lua +++ b/test/functional/provider/python3_spec.lua @@ -10,13 +10,14 @@ local pcall_err = helpers.pcall_err do clear() - if missing_provider('python3') then + local reason = missing_provider('python3') + if reason then it(':python3 reports E319 if provider is missing', function() local expected = [[Vim%(py3.*%):E319: No "python3" provider found.*]] matches(expected, pcall_err(command, 'py3 print("foo")')) matches(expected, pcall_err(command, 'py3file foo')) end) - pending('Python 3 (or the pynvim module) is broken/missing', function() end) + pending(string.format('Python 3 (or the pynvim module) is broken/missing (%s)', reason), function() end) return end end |