]> granicus.if.org Git - vim/commitdiff
patch 8.2.3499: GUI geometry startup test fails v8.2.3499
authorBram Moolenaar <Bram@vim.org>
Mon, 11 Oct 2021 21:57:34 +0000 (22:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 11 Oct 2021 21:57:34 +0000 (22:57 +0100)
Problem:    GUI geometry startup test fails.
Solution:   Check string values instead of numbers

src/testdir/test_startup.vim
src/version.c

index b20954b25c352a13583ab37a84b4c0d02abbaa9a..d67bfb7777a82f9234b2508819bbed03a1a66c8b 100644 (file)
@@ -536,11 +536,11 @@ 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, lines[0])
-      call assert_equal(13, lines[1])
-      call assert_equal(41, lines[2])
-      call assert_equal(43, lines[3])
-      call assert_equal([41, 43], lines[4])
+      call assert_inrange(31, 35, str2nr(lines[0]))
+      call assert_equal('13', lines[1])
+      call assert_equal('41', lines[2])
+      call assert_equal('43', lines[3])
+      call assert_equal('[41, 43]', lines[4])
     endif
   endif
 
index c916c5e89ed49e4fa5ad2c3a013da07527b16981..8497e7d563a82ff64614aaeb7d5dff51050d3747 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3499,
 /**/
     3498,
 /**/