• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisionc7843f009ecfb7482105485e54bcc95c4b348efc (tree)
Zeit2020-06-02 04:45:03
AutorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.0884: searchcount() test fails on slower systems

Commit: https://github.com/vim/vim/commit/ea6561af92eeb26fa0b4966575da7cadd98af1cd
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 1 21:32:45 2020 +0200

patch 8.2.0884: searchcount() test fails on slower systems
Problem: Searchcount() test fails on slower systems.
Solution: Set a longer timeout.

Ändern Zusammenfassung

Diff

diff -r 9bc62a5518fb -r c7843f009ecf src/search.c
--- a/src/search.c Mon Jun 01 21:15:04 2020 +0200
+++ b/src/search.c Mon Jun 01 21:45:03 2020 +0200
@@ -36,7 +36,7 @@
3636 static void cmdline_search_stat(int dirc, pos_T *pos, pos_T *cursor_pos, int show_top_bot_msg, char_u *msgbuf, int recompute, int maxcount, long timeout);
3737 static void update_search_stat(int dirc, pos_T *pos, pos_T *cursor_pos, searchstat_T *stat, int recompute, int maxcount, long timeout);
3838
39-#define SEARCH_STAT_DEF_TIMEOUT 20L
39+#define SEARCH_STAT_DEF_TIMEOUT 40L
4040 #define SEARCH_STAT_DEF_MAX_COUNT 99
4141 #define SEARCH_STAT_BUF_LEN 12
4242
diff -r 9bc62a5518fb -r c7843f009ecf src/testdir/test_search_stat.vim
--- a/src/testdir/test_search_stat.vim Mon Jun 01 21:15:04 2020 +0200
+++ b/src/testdir/test_search_stat.vim Mon Jun 01 21:45:03 2020 +0200
@@ -87,10 +87,10 @@
8787 \ searchcount(#{recompute: 0}))
8888 call assert_equal(
8989 \ #{current: 272, exact_match: 1, total: 280, incomplete: 0, maxcount: 0},
90- \ searchcount(#{recompute: v:true, maxcount: 0}))
90+ \ searchcount(#{recompute: v:true, maxcount: 0, timeout: 200}))
9191 call assert_equal(
9292 \ #{current: 1, exact_match: 1, total: 280, incomplete: 0, maxcount: 0},
93- \ searchcount(#{recompute: 1, maxcount: 0, pos: [1, 1, 0]}))
93+ \ searchcount(#{recompute: 1, maxcount: 0, pos: [1, 1, 0], timeout: 200}))
9494 call cursor(line('$'), 1)
9595 let g:a = execute(':unsilent :norm! n')
9696 let stat = 'W \[1/>99\]'
@@ -100,10 +100,10 @@
100100 \ searchcount(#{recompute: 0}))
101101 call assert_equal(
102102 \ #{current: 1, exact_match: 1, total: 280, incomplete: 0, maxcount: 0},
103- \ searchcount(#{recompute: 1, maxcount: 0}))
103+ \ searchcount(#{recompute: 1, maxcount: 0, timeout: 200}))
104104 call assert_equal(
105105 \ #{current: 271, exact_match: 1, total: 280, incomplete: 0, maxcount: 0},
106- \ searchcount(#{recompute: 1, maxcount: 0, pos: [line('$')-2, 1, 0]}))
106+ \ searchcount(#{recompute: 1, maxcount: 0, pos: [line('$')-2, 1, 0], timeout: 200}))
107107
108108 " Many matches
109109 call cursor(1, 1)
diff -r 9bc62a5518fb -r c7843f009ecf src/version.c
--- a/src/version.c Mon Jun 01 21:15:04 2020 +0200
+++ b/src/version.c Mon Jun 01 21:45:03 2020 +0200
@@ -747,6 +747,8 @@
747747 static int included_patches[] =
748748 { /* Add new patch number below this line */
749749 /**/
750+ 884,
751+/**/
750752 883,
751753 /**/
752754 882,
Show on old repository browser