aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-03 17:19:51 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-03 18:38:37 +0800
commita87ecf5d086c9a93be4c5f331a684301b2c1bc12 (patch)
treeeea089ddd8aae373ac45656e55e438ec63502a20 /test
parent21cdecc8e0233d7a99d971327d21f701dbd65ba1 (diff)
downloadrneovim-a87ecf5d086c9a93be4c5f331a684301b2c1bc12.tar.gz
rneovim-a87ecf5d086c9a93be4c5f331a684301b2c1bc12.tar.bz2
rneovim-a87ecf5d086c9a93be4c5f331a684301b2c1bc12.zip
fix(health): do not run external processes in a shell
Diffstat (limited to 'test')
-rw-r--r--test/functional/plugin/health_spec.lua11
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)