aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/quickfix_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/quickfix_spec.lua')
-rw-r--r--test/functional/legacy/quickfix_spec.lua12
1 files changed, 7 insertions, 5 deletions
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)