]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1453: tests: Test_geometry() may fail v9.1.1453
authorChristian Brabandt <cb@256bit.org>
Tue, 10 Jun 2025 19:29:43 +0000 (21:29 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 10 Jun 2025 19:29:43 +0000 (21:29 +0200)
Problem:  tests: Test_geometry() may fail
          (Gary Johnson)
Solution: allow a slightly smaller value when checking the number of
          lines.

fixes: #17491

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_startup.vim
src/version.c

index 0b2b76adff7a76587cf3f228bb696d422f3fe1ae..6d43487017e04e6a058bc5ee6b8f0f9c0b321d03 100644 (file)
@@ -526,7 +526,7 @@ func Test_geometry()
       " Depending on the GUI library and the windowing system the final size
       " might be a bit different, allow for some tolerance.  Tuned based on
       " actual failures.
-      call assert_inrange(31, 35, str2nr(lines[0]))
+      call assert_inrange(30, 35, str2nr(lines[0]))
       " for some reason, the window may contain fewer lines than requested
       " for GTK, so allow some tolerance
       call assert_inrange(8, 13,  str2nr(lines[1]))
index 9e37c250bc7a5fd94158f4064dfbd31d81cc3173..03922e5f212c8645ee341c7c508c81cb8d622078 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1453,
 /**/
     1452,
 /**/