diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-03 19:29:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 19:29:24 +0800 |
commit | 02d4c9158831be1ed89beb1c840d3d4efcf099c4 (patch) | |
tree | eea089ddd8aae373ac45656e55e438ec63502a20 /test/functional/plugin/health_spec.lua | |
parent | 21cdecc8e0233d7a99d971327d21f701dbd65ba1 (diff) | |
parent | a87ecf5d086c9a93be4c5f331a684301b2c1bc12 (diff) | |
download | rneovim-02d4c9158831be1ed89beb1c840d3d4efcf099c4.tar.gz rneovim-02d4c9158831be1ed89beb1c840d3d4efcf099c4.tar.bz2 rneovim-02d4c9158831be1ed89beb1c840d3d4efcf099c4.zip |
Merge pull request #17268 from zeertzjq/health-noshell
fix(health): do not run external processes in a shell
Diffstat (limited to 'test/functional/plugin/health_spec.lua')
-rw-r--r-- | test/functional/plugin/health_spec.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua index 37de5d0ce6..f7c2dbdb43 100644 --- a/test/functional/plugin/health_spec.lua +++ b/test/functional/plugin/health_spec.lua @@ -230,3 +230,14 @@ describe('health.vim', function() end) end) end) + +describe(':checkhealth provider', function() + it("works correctly with a wrongly configured 'shell'", function() + clear() + command([[set shell=echo\ WRONG!!!]]) + command('let g:loaded_perl_provider = 0') + command('let g:loaded_python3_provider = 0') + command('checkhealth provider') + eq(nil, string.match(curbuf_contents(), 'WRONG!!!')) + end) +end) |