mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.1.0213: CI: MS-Windows fails in test_winfixbuf (#28071)
Problem: CI: MS-Windows fails in test_winfixbuf
(after v9.1.208)
Solution: Instead of skipping the test, write the file
so it exists on disk, to verify that MS-Windows
short filename expansion is successful.
(Sean Dewar)
related: vim/vim#14286
aed6554b46
Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
This commit is contained in:
parent
67596c42eb
commit
070b0b4572
@ -1252,11 +1252,12 @@ 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 file = tempname()
|
||||
" file must exist for expansion of 8.3 paths to succeed
|
||||
call writefile([], file, 'D')
|
||||
let file = fnamemodify(file, ':p')
|
||||
let current = bufnr()
|
||||
execute "edit " . file
|
||||
write!
|
||||
@ -1266,7 +1267,6 @@ func Test_edit_same_buffer_on_disk_absolute_path()
|
||||
execute "edit " file
|
||||
call assert_equal(current, bufnr())
|
||||
|
||||
call delete(file)
|
||||
set nowinfixbuf
|
||||
endfunc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user