Patch 9.0.0112
Problem:    MS-Windows: test fails because file already exists.
Solution:   Wait a little while until the file is gone.
Files:      src/testdir/test_shortpathname.vim


*** ../vim-9.0.0111/src/testdir/test_shortpathname.vim  2022-03-10 
11:51:27.000000000 +0000
--- src/testdir/test_shortpathname.vim  2022-07-30 15:33:20.993277578 +0100
***************
*** 19,30 ****
  func Test_ColonEight()
    let save_dir = getcwd()
  
!   " This could change for CygWin to //cygdrive/c
    let dir1 = 'c:/x.x.y'
!   if filereadable(dir1) || isdirectory(dir1)
!     call assert_report("Fatal: '" . dir1 . "' exists, cannot run test")
!     return
!   endif
  
    let file1 = dir1 . '/zz.y.txt'
    let nofile1 = dir1 . '/z.y.txt'
--- 19,40 ----
  func Test_ColonEight()
    let save_dir = getcwd()
  
!   " This could change for CygWin to //cygdrive/c .
    let dir1 = 'c:/x.x.y'
!   let trycount = 5
!   while 1
!     if !filereadable(dir1) && !isdirectory(dir1)
!       break
!     endif
!     if trycount == 1
!       call assert_report("Fatal: '" . dir1 . "' exists, cannot run this test")
!       return
!     endif
!     " When tests run in parallel the directory may exist, wait a bit until it
!     " is gone.
!     sleep 5
!     let trycount -= 1
!   endwhile
  
    let file1 = dir1 . '/zz.y.txt'
    let nofile1 = dir1 . '/z.y.txt'
*** ../vim-9.0.0111/src/version.c       2022-07-30 14:56:11.771483764 +0100
--- src/version.c       2022-07-30 15:34:20.701201379 +0100
***************
*** 737,738 ****
--- 737,740 ----
  {   /* Add new patch number below this line */
+ /**/
+     112,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
196. Your computer costs more than your car.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220730143536.CEFFC1C0ECD%40moolenaar.net.

Raspunde prin e-mail lui