Patch 8.2.3495

4 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 11, 2021, 11:09:40 AM10/11/21
to vim...@googlegroups.com

Patch 8.2.3495
Problem: GUI geometry startup test fails on some systems. (Drew Vogel)
Solution: Add tolerance to the size check. (closes #8815)
Files: src/testdir/test_startup.vim


*** ../vim-8.2.3494/src/testdir/test_startup.vim 2021-10-05 01:19:47.077306874 +0100
--- src/testdir/test_startup.vim 2021-10-11 16:03:01.087648152 +0100
***************
*** 533,539 ****
[CODE]
if RunVim([], after, '-f -g -geometry 31x13+41+43')
let lines = readfile('Xtest_geometry')
! call assert_equal(['31', '13', '41', '43', '[41, 43]'], lines)
endif
endif

--- 533,546 ----
[CODE]
if RunVim([], after, '-f -g -geometry 31x13+41+43')
let lines = readfile('Xtest_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])
endif
endif

*** ../vim-8.2.3494/src/version.c 2021-10-11 15:40:36.476538476 +0100
--- src/version.c 2021-10-11 16:05:52.331299610 +0100
***************
*** 759,760 ****
--- 759,762 ----
{ /* Add new patch number below this line */
+ /**/
+ 3495,
/**/

--
All true wisdom is found on T-shirts.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages