aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-28 17:53:15 +0800
committerGitHub <noreply@github.com>2024-03-28 17:53:15 +0800
commit070b0b4572f0b56d8c7bb64f0eb1b4f351717119 (patch)
treeac49cab67fdf6b5f746f4748e04432cb46ec5395
parent67596c42eb379d6d9fec78bd8c7c347cfdfbda8c (diff)
downloadrneovim-070b0b4572f0b56d8c7bb64f0eb1b4f351717119.tar.gz
rneovim-070b0b4572f0b56d8c7bb64f0eb1b4f351717119.tar.bz2
rneovim-070b0b4572f0b56d8c7bb64f0eb1b4f351717119.zip
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 https://github.com/vim/vim/commit/aed6554b46bbba39bcb22e49cc731176cd75789b Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
-rw-r--r--test/old/testdir/test_winfixbuf.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/old/testdir/test_winfixbuf.vim b/test/old/testdir/test_winfixbuf.vim
index 663e7c829a..c6c483e5a0 100644
--- a/test/old/testdir/test_winfixbuf.vim
+++ b/test/old/testdir/test_winfixbuf.vim
@@ -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