aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-05 09:52:34 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-12-05 09:55:18 +0800
commit78fa1f069ddfdc65d2452056d051678d1242e034 (patch)
treef932202b76891fbedeb1ff8b3d2830e7135516b5
parente9ad613fdfd91c7d4b090e404976f9ea8667fae0 (diff)
downloadrneovim-78fa1f069ddfdc65d2452056d051678d1242e034.tar.gz
rneovim-78fa1f069ddfdc65d2452056d051678d1242e034.tar.bz2
rneovim-78fa1f069ddfdc65d2452056d051678d1242e034.zip
vim-patch:8.2.3495: GUI geometry startup test fails on some systems
Problem: GUI geometry startup test fails on some systems. (Drew Vogel) Solution: Add tolerance to the size check. (closes vim/vim#8815) https://github.com/vim/vim/commit/b376aa2da4211fee7eaf16450bb8b37674e45bb0 Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/testdir/test_startup.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim
index 42467c5508..96a5c96da1 100644
--- a/src/nvim/testdir/test_startup.vim
+++ b/src/nvim/testdir/test_startup.vim
@@ -522,7 +522,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