From 830bf8665b6a98705b16d977ca7d11c2ca51dca8 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sat, 12 Nov 2016 15:45:10 -0500 Subject: vim-patch:7.4.1650 Problem: Quickfix test fails. Solution: Accept any number of matches. https://github.com/vim/vim/commit/f68f1d70799631d38461c36cd59d08cf839b010d --- test/functional/legacy/quickfix_spec.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/functional/legacy/quickfix_spec.lua b/test/functional/legacy/quickfix_spec.lua index fa9ddc78ae..5e5aefc4e6 100644 --- a/test/functional/legacy/quickfix_spec.lua +++ b/test/functional/legacy/quickfix_spec.lua @@ -448,11 +448,13 @@ describe('helpgrep', function() helpgr quickfix call setqflist([], 'r') cad - call assert_fails('cn', 'E553:') - " Upstream calls quit! here to verify vim is still - " running, but that will be covered by the - " expected_empty() call in the busted test - " quit! + try + silent cn + catch + " number of matches is unknown + call assert_true(v:exception =~ 'E553:') + endtry + quit! endfunc ]]) end) -- cgit