aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-27 18:46:23 +0800
committerGitHub <noreply@github.com>2024-03-27 18:46:23 +0800
commit8774dad1768dfe99df8d846171aa71df4d5ae1b5 (patch)
tree302b004f0198cf7706ddee49cc8bc979eddca99d
parent7d971500847089ec8ade926a7f84d6bb3a51c8b0 (diff)
downloadrneovim-8774dad1768dfe99df8d846171aa71df4d5ae1b5.tar.gz
rneovim-8774dad1768dfe99df8d846171aa71df4d5ae1b5.tar.bz2
rneovim-8774dad1768dfe99df8d846171aa71df4d5ae1b5.zip
vim-patch:9.1.0212: CI: MS-Windows fails in test_winfixbuf (#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 https://github.com/vim/vim/commit/79b2867ce3f4ed99d8c4e06c2c3b8f105f67c53a Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--test/old/testdir/test_winfixbuf.vim24
1 files changed, 14 insertions, 10 deletions
diff --git a/test/old/testdir/test_winfixbuf.vim b/test/old/testdir/test_winfixbuf.vim
index d5e43cf33e..3fcc5fa5eb 100644
--- a/test/old/testdir/test_winfixbuf.vim
+++ b/test/old/testdir/test_winfixbuf.vim
@@ -1239,30 +1239,34 @@ endfunc
func Test_edit_same_buffer_in_memory()
call s:reset_all_buffers()
- let l:current = bufnr()
+ let current = bufnr()
file same_buffer
- call assert_equal(l:current, bufnr())
+ call assert_equal(current, bufnr())
set winfixbuf
edit same_buffer
- call assert_equal(l:current, bufnr())
+ call assert_equal(current, bufnr())
+ set nowinfixbuf
endfunc
" Allow :e selecting the current buffer as a full path
func Test_edit_same_buffer_on_disk_absolute_path()
+ " This fails on CI (Windows builds), why?
+ " CheckNotMSWindows
call s:reset_all_buffers()
- let l:file = tempname()
- let l:current = bufnr()
- execute "edit " . l:file
+ let file = tempname()
+ let current = bufnr()
+ execute "edit " . file
write!
- call assert_equal(l:current, bufnr())
+ call assert_equal(current, bufnr())
set winfixbuf
- execute "edit " l:file
- call assert_equal(l:current, bufnr())
+ execute "edit " file
+ call assert_equal(current, bufnr())
- call delete(l:file)
+ call delete(file)
+ set nowinfixbuf
endfunc
" Fail :enew but :enew! is allowed