aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-21 22:39:13 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-21 22:45:39 -0500
commit485e5022fcaba3961626859885e67504ae0ceaca (patch)
tree43c99ad49c7582725a99e706d7199a72c38bdb75 /src
parente632e30b8a6c65ebe30849f6f2fe09c7630ed303 (diff)
downloadrneovim-485e5022fcaba3961626859885e67504ae0ceaca.tar.gz
rneovim-485e5022fcaba3961626859885e67504ae0ceaca.tar.bz2
rneovim-485e5022fcaba3961626859885e67504ae0ceaca.zip
test/old: cherry-pick patch 8.2.0509 for Test_q_arg()
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_startup.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim
index 1a90c8d62f..747eb28a28 100644
--- a/src/nvim/testdir/test_startup.vim
+++ b/src/nvim/testdir/test_startup.vim
@@ -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