patch 9.1.1701: tests: failure on CI with GUI and ASAN in test_edit.res
Commit:
https://github.com/vim/vim/commit/6c14c4625b99fab98ae3836d4f12e35c7aefa51a
Author: Christian Brabandt <
c...@256bit.org>
Date: Wed Aug 27 18:38:13 2025 +0200
patch 9.1.1701: tests: failure on CI with GUI and ASAN in test_edit.res
Problem: tests: failure on CI with GUI and ASAN in test_edit.res
(Hirohito Higashi)
Solution: Disable the test for that specific situation in CI, close
swapfiles
fixes: #18070
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim
index c951f3a7b..80a3de650 100644
--- a/src/testdir/test_edit.vim
+++ b/src/testdir/test_edit.vim
@@ -1702,7 +1702,7 @@ func Test_edit_special_chars()
exe "normal " . t
call assert_equal("ABC !a\<C-O>g\<C-G>8", getline(2))
- close!
+ bw!
endfunc
func Test_edit_startinsert()
@@ -1733,7 +1733,7 @@ func Test_edit_startreplace()
call assert_equal("axyz b", getline(1))
call feedkeys("0i\<C-R>=execute('startreplace')\<CR>12�", 'xt')
call assert_equal("12axyz b", getline(1))
- close!
+ bw!
endfunc
func Test_edit_noesckeys()
@@ -1772,7 +1772,7 @@ func Test_edit_ctrl_o_invalid_cmd()
call assert_equal('abc', getline(1))
set showmode& showcmd&
call test_override('ui_delay', 0)
- close!
+ bw!
endfunc
" Test for editing a file with a very long name
@@ -1974,7 +1974,7 @@ func Test_edit_hkmap()
call assert_equal(expected, getline(1))
set revins& hkmap& hkmapp&
- close!
+ bw!
endfunc
" Test for 'allowrevins' and using CTRL-_ in insert mode
@@ -1985,7 +1985,7 @@ func Test_edit_allowrevins()
call feedkeys("iABC\<C-_>DEF\<C-_>GHI", 'xt')
call assert_equal('ABCFEDGHI', getline(1))
set allowrevins&
- close!
+ bw!
endfunc
" Test for inserting a register in insert mode using CTRL-R
@@ -2008,7 +2008,7 @@ func Test_edit_insert_reg()
call feedkeys("a\<C-R>=[]\<CR>", "xt")
call assert_equal(['r'], getbufline('', 1, '$'))
call test_override('ALL', 0)
- close!
+ bw!
endfunc
" Test for positioning cursor after CTRL-R expression failed
@@ -2032,6 +2032,11 @@ endfunc
" window, the window contents should be scrolled one line up. If the top line
" is part of a fold, then the entire fold should be scrolled up.
func Test_edit_lastline_scroll()
+ if has('gui_running')
+ " TODO: For unknown reasons, this test fails on CI when run in Gui mode
+ " with ASAN enabled, figure out why
+ CheckNotAsan
+ endif
new
let h = winheight(0)
let lines = ['one', 'two', 'three']
@@ -2052,7 +2057,7 @@ func Test_edit_lastline_scroll()
call assert_equal(h - 1, winline())
call assert_equal(3, line('w0'))
- close!
+ bw!
endfunc
func Test_edit_browse()
diff --git a/src/version.c b/src/version.c
index 48c5c1c3e..b35121839 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1701,
/**/
1700,
/**/