Skip to content

Commit 8774dad

Browse files
zeertzjqchrisbra
andauthored
vim-patch:9.1.0212: CI: MS-Windows fails in test_winfixbuf (neovim#28056)
Problem: CI: MS-Windows fails in test_winfixbuf (after v9.1.208) Solution: Skip Ms-Windows for now, fix style related: vim/vim#14286 vim/vim@79b2867 Co-authored-by: Christian Brabandt <[email protected]>
1 parent 7d97150 commit 8774dad

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

Diff for: test/old/testdir/test_winfixbuf.vim

+14-10
Original file line numberDiff line numberDiff line change
@@ -1239,30 +1239,34 @@ endfunc
12391239
func Test_edit_same_buffer_in_memory()
12401240
call s:reset_all_buffers()
12411241

1242-
let l:current = bufnr()
1242+
let current = bufnr()
12431243
file same_buffer
12441244

1245-
call assert_equal(l:current, bufnr())
1245+
call assert_equal(current, bufnr())
12461246
set winfixbuf
12471247
edit same_buffer
1248-
call assert_equal(l:current, bufnr())
1248+
call assert_equal(current, bufnr())
1249+
set nowinfixbuf
12491250
endfunc
12501251

12511252
" Allow :e selecting the current buffer as a full path
12521253
func Test_edit_same_buffer_on_disk_absolute_path()
1254+
" This fails on CI (Windows builds), why?
1255+
" CheckNotMSWindows
12531256
call s:reset_all_buffers()
12541257

1255-
let l:file = tempname()
1256-
let l:current = bufnr()
1257-
execute "edit " . l:file
1258+
let file = tempname()
1259+
let current = bufnr()
1260+
execute "edit " . file
12581261
write!
12591262

1260-
call assert_equal(l:current, bufnr())
1263+
call assert_equal(current, bufnr())
12611264
set winfixbuf
1262-
execute "edit " l:file
1263-
call assert_equal(l:current, bufnr())
1265+
execute "edit " file
1266+
call assert_equal(current, bufnr())
12641267

1265-
call delete(l:file)
1268+
call delete(file)
1269+
set nowinfixbuf
12661270
endfunc
12671271

12681272
" Fail :enew but :enew! is allowed

0 commit comments

Comments
 (0)