test/old: cherry-pick patch 8.2.0509 for Test_q_arg()

This commit is contained in:
Jan Edmund Lazo 2020-11-21 22:39:13 -05:00
parent e632e30b8a
commit 485e5022fc
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -2,6 +2,7 @@
source shared.vim
source screendump.vim
source term_util.vim
source check.vim
" Check that loading startup.vim works.
@ -324,6 +325,10 @@ func Test_q_arg()
\ lines)
endif
" Test with a non-existing error file (exits with value 3)
let out = system(GetVimCommand() .. ' -q xyz.err')
call assert_equal(3, v:shell_error)
call delete('Xtestout')
call delete('Xerrors')
endfunc