mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
:checkhealth : validate 'runtimepath' (#7526)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user