From: Bram Moolenaar Date: Sat, 18 Jun 2022 15:05:32 +0000 (+0100) Subject: patch 8.2.5124: when syntax timeout test fails it does not show the time X-Git-Tag: v8.2.5124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=620aa8eb5b1468d086253f8aa787a33a86033100;p=vim patch 8.2.5124: when syntax timeout test fails it does not show the time Problem: When syntax timeout test fails it does not show the time. Solution: Use assert_inrange(). --- diff --git a/src/testdir/test_syntax.vim b/src/testdir/test_syntax.vim index 82d5cbb0b..589470b68 100644 --- a/src/testdir/test_syntax.vim +++ b/src/testdir/test_syntax.vim @@ -544,22 +544,20 @@ func Test_syntax_hangs() syn match Error /\%#=1a*.*X\@<=b*/ redraw let elapsed = reltimefloat(reltime(start)) - call assert_true(elapsed > min_timeout) - call assert_true(elapsed < 1.0) + call assert_inrange(min_timeout, 1.0, elapsed) " second time syntax HL is disabled let start = reltime() redraw let elapsed = reltimefloat(reltime(start)) - call assert_true(elapsed < 0.1) + call assert_inrange(0, 0.1, elapsed) " after CTRL-L the timeout flag is reset let start = reltime() exe "normal \" redraw let elapsed = reltimefloat(reltime(start)) - call assert_true(elapsed > min_timeout) - call assert_true(elapsed < 1.0) + call assert_inrange(min_timeout, 1.0, elapsed) set redrawtime& bwipe! diff --git a/src/version.c b/src/version.c index 0a422742f..66dba1757 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 5124, /**/ 5123, /**/