diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-01 15:23:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-01 15:23:11 +0100 |
commit | 5a4c3082d7ab51b3d448a91578479c96c1ab0ad3 (patch) | |
tree | a25f441743857c618f3f019372a284b1d57c4e0d /src/testdir/test_startup.vim | |
parent | 9625d3d92d93be52f5d89a57b27ba2400e0fc6d2 (diff) | |
download | vim-git-5a4c3082d7ab51b3d448a91578479c96c1ab0ad3.tar.gz |
patch 8.1.2373: cannot build with +popupwin but without +quickfixv8.1.2373
Problem: Cannot build with +popupwin but without +quickfix. (John Marriott)
Solution: Adjust #ifdefs.
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 358ca8171..1617c5243 100644 --- 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") |