# HG changeset patch # User Christian Brabandt # Date 1711616407 -3600 # Node ID 224d4a7922646c0e693c6f05cea1ec3a3b46f76f # Parent 75a8299ca1eab25e69ee856e66c9e9277f848222 patch 9.1.0213: CI: MS-Windows fails in test_winfixbuf Commit: https://github.com/vim/vim/commit/aed6554b46bbba39bcb22e49cc731176cd75789b Author: Sean Dewar <6256228+seandewar@users.noreply.github.com> Date: Thu Mar 28 09:48:34 2024 +0100 patch 9.1.0213: CI: MS-Windows fails in test_winfixbuf 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: #14286 Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com> Signed-off-by: Christian Brabandt diff --git a/src/testdir/test_winfixbuf.vim b/src/testdir/test_winfixbuf.vim --- a/src/testdir/test_winfixbuf.vim +++ b/src/testdir/test_winfixbuf.vim @@ -1251,11 +1251,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! @@ -1265,7 +1266,6 @@ func Test_edit_same_buffer_on_disk_absol execute "edit " file call assert_equal(current, bufnr()) - call delete(file) set nowinfixbuf endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 213, +/**/ 212, /**/ 211,