Mercurial > vim
diff src/testdir/test_hlsearch.vim @ 11527:ac20f71e8aa4 v8.0.0646
patch 8.0.0646: the hlsearch test fails on fast systems
commit https://github.com/vim/vim/commit/0946326580e6f034fe2c88d041407ea0fde980ab
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 17 20:55:06 2017 +0200
patch 8.0.0646: the hlsearch test fails on fast systems
Problem: The hlsearch test fails on fast systems.
Solution: Make the search pattern slower. Fix that the old regexp engine
doesn't timeout properly.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 17 Jun 2017 21:00:03 +0200 |
parents | 14b6b79d685b |
children | 04c168a6d998 |
line wrap: on
line diff
--- a/src/testdir/test_hlsearch.vim +++ b/src/testdir/test_hlsearch.vim @@ -39,7 +39,8 @@ func Test_hlsearch_hangs() endif " This pattern takes a long time to match, it should timeout. - help + new + call setline(1, ['aaa', repeat('abc ', 1000), 'ccc']) let start = reltime() set hlsearch nolazyredraw redrawtime=101 let @/ = '\%#=1a*.*X\@<=b*' @@ -48,5 +49,5 @@ func Test_hlsearch_hangs() call assert_true(elapsed > 0.1) call assert_true(elapsed < 1.0) set nohlsearch redrawtime& - quit + bwipe! endfunc