diff options
-rw-r--r-- | test/old/testdir/test_winfixbuf.vim | 6 |
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 |