summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autocmd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-01 15:23:11 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-01 15:23:11 +0100
commit5a4c3082d7ab51b3d448a91578479c96c1ab0ad3 (patch)
treea25f441743857c618f3f019372a284b1d57c4e0d /src/testdir/test_autocmd.vim
parent9625d3d92d93be52f5d89a57b27ba2400e0fc6d2 (diff)
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_autocmd.vim')
-rw-r--r--src/testdir/test_autocmd.vim12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index 6d1897a4aa..c16a679da3 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -1713,10 +1713,12 @@ func Test_nocatch_wipe_all_buffers()
endfunc
func Test_nocatch_wipe_dummy_buffer()
- " Nasty autocommand: wipe buffer on any event.
- au * x bwipe
- call assert_fails('lv½ /x', 'E480')
- au!
+ if has('quickfix')
+ " Nasty autocommand: wipe buffer on any event.
+ au * x bwipe
+ call assert_fails('lv½ /x', 'E480')
+ au!
+ endif
endfunc
function s:Before_test_dirchanged()
@@ -2291,6 +2293,8 @@ func Test_autocmd_CmdWinEnter()
endfunc
func Test_autocmd_was_using_freed_memory()
+ CheckFeature quickfix
+
pedit xx
n x
au WinEnter * quit