]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0213: CI: MS-Windows fails in test_winfixbuf v9.1.0213
authorSean Dewar <6256228+seandewar@users.noreply.github.com>
Thu, 28 Mar 2024 08:48:34 +0000 (09:48 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 28 Mar 2024 08:48:34 +0000 (09:48 +0100)
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 <cb@256bit.org>
src/testdir/test_winfixbuf.vim
src/version.c

index 462554b1127b760586ca962d49888b834cb9c47c..610e8e0bc7a84cb04a866cbc4ec2ff26b3f2c6e1 100644 (file)
@@ -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_absolute_path()
   execute "edit " file
   call assert_equal(current, bufnr())
 
-  call delete(file)
   set nowinfixbuf
 endfunc
 
index 1ea07b334bf9af6020fb7cda4f53add59de2db36..5383d5151491d935e791db9f0542d5a320a078d1 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    213,
 /**/
     212,
 /**/