]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0212: CI: MS-Windows fails in test_winfixbuf v9.1.0212
authorChristian Brabandt <cb@256bit.org>
Wed, 27 Mar 2024 09:44:14 +0000 (10:44 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 27 Mar 2024 09:48:40 +0000 (10:48 +0100)
Problem:  CI: MS-Windows fails in test_winfixbuf
          (after v9.1.208)
Solution: Skip Ms-Windows for now, fix style

related: #14286

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_winfixbuf.vim
src/version.c

index ba44b42cca9422c4c44b742ffdb30d0004dc5497..462554b1127b760586ca962d49888b834cb9c47c 100644 (file)
@@ -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
index 634125972490157719be28633a9ef16a1044801e..1ea07b334bf9af6020fb7cda4f53add59de2db36 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    212,
 /**/
     211,
 /**/