Skip to content

Commit

Permalink
patch 8.2.3495: GUI geometry startup test fails on some systems
Browse files Browse the repository at this point in the history
Problem:    GUI geometry startup test fails on some systems. (Drew Vogel)
Solution:   Add tolerance to the size check. (closes #8815)
  • Loading branch information
brammool committed Oct 11, 2021
1 parent b07626d commit b376aa2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/testdir/test_startup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,14 @@ func Test_geometry()
[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)
" 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

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3495,
/**/
3494,
/**/
Expand Down

0 comments on commit b376aa2

Please sign in to comment.