diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2020-09-02 12:57:01 +0100 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2020-09-05 13:09:15 +0100 |
commit | 8705fbf77c067a907caf1920a0852fdb8619c649 (patch) | |
tree | 4fd34c77631ddd369209779c62f8e99c5fa9c2dc /test/functional/helpers.lua | |
parent | 98dea93ba06860cd369cf151f0d5929ea24da445 (diff) | |
download | rneovim-8705fbf77c067a907caf1920a0852fdb8619c649.tar.gz rneovim-8705fbf77c067a907caf1920a0852fdb8619c649.tar.bz2 rneovim-8705fbf77c067a907caf1920a0852fdb8619c649.zip |
healtcheck: use g:perl_host_prog if its set instead
using just 'perl' isn't correct as it may not be the version requested.
ditto for 'cpanm', rather go through 'App::cpanminus' to find the latest
perl version
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index e8435cd3b7..82b6fb42e8 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -768,9 +768,12 @@ function module.new_pipename() end function module.missing_provider(provider) - if provider == 'ruby' or provider == 'node' or provider == 'perl' then + if provider == 'ruby' or provider == 'node' then local prog = module.funcs['provider#' .. provider .. '#Detect']() return prog == '' and (provider .. ' not detected') or false + elseif provider == 'perl' then + local errors = module.funcs['provider#'..provider..'#Detect']()[2] + return errors ~= '' and errors or false elseif provider == 'python' or provider == 'python3' then local py_major_version = (provider == 'python3' and 3 or 2) local errors = module.funcs['provider#pythonx#Detect'](py_major_version)[2] |