diff options
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 4e034ef85d..3cb5a2deb6 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -277,18 +277,20 @@ func Test_V_arg() endfunc " Test that an error is shown when the defaults.vim file could not be read -" TODO: disabled - this causes ASAN errors for unknown reasons -"func Test_defaults_error() -" " Can't catch the output of gvim. -" CheckNotGui -" CheckNotMSWindows -" -" 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 +func Test_defaults_error() + " 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() |