patch 9.1.1370: CI Tests favor GTK2 over GTK3
Problem: CI Tests favor GTK2 over GTK3
Solution: Install GTK3 dependencies and debug packages for CI workflows,
update ASAN suppression list, update required dependency
checks for the tests (Drew Vogel)
closes: #17253
Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim
index 28800f1..847987b 100644
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -951,18 +951,6 @@
execute "normal! gR\<C-o>g@l\<Esc>"
call assert_equal('n-niV', g:current_modes)
- " Test statusline updates for overstrike mode
- if CanRunVimInTerminal()
- let buf = RunVimInTerminal('', {'rows': 12})
- call term_sendkeys(buf, ":set laststatus=2 statusline=%!mode(1)\<CR>")
- call term_sendkeys(buf, ":")
- call TermWait(buf)
- call VerifyScreenDump(buf, 'Test_mode_1', {})
- call term_sendkeys(buf, "\<Insert>")
- call TermWait(buf)
- call VerifyScreenDump(buf, 'Test_mode_2', {})
- call StopVimInTerminal(buf)
- endif
if has('terminal')
term
@@ -990,6 +978,22 @@
delfunction OperatorFunc
endfunc
+" Test for the mode() function using Screendump feature
+func Test_mode_screendump()
+ CheckScreendump
+
+ " Test statusline updates for overstrike mode
+ let buf = RunVimInTerminal('', {'rows': 12})
+ call term_sendkeys(buf, ":set laststatus=2 statusline=%!mode(1)\<CR>")
+ call term_sendkeys(buf, ":")
+ call TermWait(buf)
+ call VerifyScreenDump(buf, 'Test_mode_1', {})
+ call term_sendkeys(buf, "\<Insert>")
+ call TermWait(buf)
+ call VerifyScreenDump(buf, 'Test_mode_2', {})
+ call StopVimInTerminal(buf)
+endfunc
+
" Test for append()
func Test_append()
enew!
@@ -1028,7 +1032,7 @@
call setline(3, test_null_list())
call setline(2, ["baz"])
call assert_equal(['bar', 'baz'], getline(1, '$'))
- close!
+ bw!
endfunc
func Test_getbufvar()