mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:8.2.2905: no error when defaults.vim cannot be loaded
Problem: No error when defaults.vim cannot be loaded. Solution: Add an error message. (Christian Brabandt, closes vim/vim#8248)1d3a14ecf0
Neovim doesn't support defaults.vim. N/A test but this should "help" reduce patch rejections. vim-patch:8.2.2906: ASAN reports errors for test_startup Problem: ASAN reports errors for test_startup for unknown reasons. Solution: Temporarily disable the new test.a5787c3742
vim-patch:8.2.2927: test commented out because it fails with ASAN Problem: Test commented out because it fails with ASAN. Solution: Only skip the test when running with ASAN.a83d06026d
Co-authored-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -282,6 +282,23 @@ func Test_V_arg()
|
||||
" call assert_match("sourcing \"$VIMRUNTIME[\\/]defaults\.vim\"\r\nline 1: \" The default vimrc file\..* verbose=15\n", out)
|
||||
endfunc
|
||||
|
||||
" Test that an error is shown when the defaults.vim file could not be read
|
||||
func Test_defaults_error()
|
||||
throw 'Skipped: Nvim does not support defaults.vim'
|
||||
" Can't catch the output of gvim.
|
||||
CheckNotGui
|
||||
CheckNotMSWindows
|
||||
" For unknown reasons freeing all memory does not work here, even though
|
||||
" EXITFREE is defined.
|
||||
CheckNotAsan
|
||||
|
||||
let out = system('VIMRUNTIME=/tmp ' .. GetVimCommand() .. ' --clean -cq')
|
||||
call assert_match("E1187: Failed to source defaults.vim", out)
|
||||
|
||||
let out = system('VIMRUNTIME=/tmp ' .. GetVimCommand() .. ' -u DEFAULTS -cq')
|
||||
call assert_match("E1187: Failed to source defaults.vim", out)
|
||||
endfunc
|
||||
|
||||
" Test the '-q [errorfile]' argument.
|
||||
func Test_q_arg()
|
||||
CheckFeature quickfix
|
||||
|
Reference in New Issue
Block a user