Mercurial > vim
diff src/testdir/test_startup.vim @ 18767:068337e86133 v8.1.2373
patch 8.1.2373: cannot build with +popupwin but without +quickfix
Commit: https://github.com/vim/vim/commit/5a4c3082d7ab51b3d448a91578479c96c1ab0ad3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 1 15:23:11 2019 +0100
patch 8.1.2373: cannot build with +popupwin but without +quickfix
Problem: Cannot build with +popupwin but without +quickfix. (John Marriott)
Solution: Adjust #ifdefs.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Dec 2019 15:30:04 +0100 |
parents | e93cab5d0f0f |
children | 031184ace7c5 |
line wrap: on
line diff
--- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -279,6 +279,8 @@ endfunc " Test the '-q [errorfile]' argument. func Test_q_arg() + CheckFeature quickfix + let source_file = has('win32') ? '..\memfile.c' : '../memfile.c' let after =<< trim [CODE] call writefile([&errorfile, string(getpos("."))], "Xtestout") @@ -458,14 +460,16 @@ func Test_invalid_args() call assert_equal('Too many edit arguments: "xxx"', out[1]) call assert_equal('More info with: "vim -h"', out[2]) - " Detect invalid repeated arguments '-t foo -t foo", '-q foo -q foo'. - for opt in ['-t', '-q'] - let out = split(system(GetVimCommand() .. repeat(' ' .. opt .. ' foo', 2)), "\n") - call assert_equal(1, v:shell_error) - call assert_match('^VIM - Vi IMproved .* (.*)$', out[0]) - call assert_equal('Too many edit arguments: "' .. opt .. '"', out[1]) - call assert_equal('More info with: "vim -h"', out[2]) - endfor + if has('quickfix') + " Detect invalid repeated arguments '-t foo -t foo", '-q foo -q foo'. + for opt in ['-t', '-q'] + let out = split(system(GetVimCommand() .. repeat(' ' .. opt .. ' foo', 2)), "\n") + call assert_equal(1, v:shell_error) + call assert_match('^VIM - Vi IMproved .* (.*)$', out[0]) + call assert_equal('Too many edit arguments: "' .. opt .. '"', out[1]) + call assert_equal('More info with: "vim -h"', out[2]) + endfor + endif for opt in [' -cq', ' --cmd q', ' +', ' -S foo'] let out = split(system(GetVimCommand() .. repeat(opt, 11)), "\n")