diff options
author | James McCoy <jamessan@jamessan.com> | 2016-11-12 15:45:10 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-11-15 23:16:09 -0500 |
commit | 830bf8665b6a98705b16d977ca7d11c2ca51dca8 (patch) | |
tree | 19e38b74d7b3d0d4b5a93283934b03b0411f4405 /test/functional/legacy/quickfix_spec.lua | |
parent | caa33aaaf8b044cf3a8311213d0841d2d9e591a5 (diff) | |
download | rneovim-830bf8665b6a98705b16d977ca7d11c2ca51dca8.tar.gz rneovim-830bf8665b6a98705b16d977ca7d11c2ca51dca8.tar.bz2 rneovim-830bf8665b6a98705b16d977ca7d11c2ca51dca8.zip |
vim-patch:7.4.1650
Problem: Quickfix test fails.
Solution: Accept any number of matches.
https://github.com/vim/vim/commit/f68f1d70799631d38461c36cd59d08cf839b010d
Diffstat (limited to 'test/functional/legacy/quickfix_spec.lua')
-rw-r--r-- | test/functional/legacy/quickfix_spec.lua | 12 |
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) |