:checkhealth : validate 'runtimepath' (#7526)

This commit is contained in:
Justin M. Keyes
2017-11-10 22:37:54 +01:00
committed by GitHub
parent 314ff440f7
commit f5d4da0144
3 changed files with 19 additions and 8 deletions

View File

@@ -16,6 +16,13 @@ describe(':checkhealth', function()
eq(false, status)
eq('Invalid $VIMRUNTIME: bogus', string.match(err, 'Invalid.*'))
end)
it("detects invalid 'runtimepath'", function()
clear()
command('set runtimepath=bogus')
local status, err = pcall(command, 'checkhealth')
eq(false, status)
eq("Invalid 'runtimepath'", string.match(err, 'Invalid.*'))
end)
it("detects invalid $VIM", function()
clear()
-- Do this after startup, otherwise it just breaks $VIMRUNTIME.