0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.1.0212: CI: MS-Windows fails in test_winfixbuf

Problem:  CI: MS-Windows fails in test_winfixbuf
          (after v9.1.208)
Solution: Skip Ms-Windows for now, fix style

related: #14286

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2024-03-27 10:44:14 +01:00
parent 63833bb021
commit 79b2867ce3
2 changed files with 16 additions and 10 deletions

View File

@@ -1239,30 +1239,34 @@ endfunc
func Test_edit_same_buffer_in_memory() func Test_edit_same_buffer_in_memory()
call s:reset_all_buffers() call s:reset_all_buffers()
let l:current = bufnr() let current = bufnr()
file same_buffer file same_buffer
call assert_equal(l:current, bufnr()) call assert_equal(current, bufnr())
set winfixbuf set winfixbuf
edit same_buffer edit same_buffer
call assert_equal(l:current, bufnr()) call assert_equal(current, bufnr())
set nowinfixbuf
endfunc endfunc
" Allow :e selecting the current buffer as a full path " Allow :e selecting the current buffer as a full path
func Test_edit_same_buffer_on_disk_absolute_path() func Test_edit_same_buffer_on_disk_absolute_path()
" This fails on CI (Windows builds), why?
CheckNotMSWindows
call s:reset_all_buffers() call s:reset_all_buffers()
let l:file = tempname() let file = tempname()
let l:current = bufnr() let current = bufnr()
execute "edit " . l:file execute "edit " . file
write! write!
call assert_equal(l:current, bufnr()) call assert_equal(current, bufnr())
set winfixbuf set winfixbuf
execute "edit " l:file execute "edit " file
call assert_equal(l:current, bufnr()) call assert_equal(current, bufnr())
call delete(l:file) call delete(file)
set nowinfixbuf
endfunc endfunc
" Fail :enew but :enew! is allowed " Fail :enew but :enew! is allowed

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
212,
/**/ /**/
211, 211,
/**/ /**/