mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 9.0.0112: MS-Windows: test fails because file already exists
Problem: MS-Windows: test fails because file already exists. Solution: Wait a little while until the file is gone.
This commit is contained in:
@@ -19,12 +19,22 @@ endfunc
|
|||||||
func Test_ColonEight()
|
func Test_ColonEight()
|
||||||
let save_dir = getcwd()
|
let save_dir = getcwd()
|
||||||
|
|
||||||
" This could change for CygWin to //cygdrive/c
|
" This could change for CygWin to //cygdrive/c .
|
||||||
let dir1 = 'c:/x.x.y'
|
let dir1 = 'c:/x.x.y'
|
||||||
if filereadable(dir1) || isdirectory(dir1)
|
let trycount = 5
|
||||||
call assert_report("Fatal: '" . dir1 . "' exists, cannot run test")
|
while 1
|
||||||
|
if !filereadable(dir1) && !isdirectory(dir1)
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
if trycount == 1
|
||||||
|
call assert_report("Fatal: '" . dir1 . "' exists, cannot run this test")
|
||||||
return
|
return
|
||||||
endif
|
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 file1 = dir1 . '/zz.y.txt'
|
||||||
let nofile1 = dir1 . '/z.y.txt'
|
let nofile1 = dir1 . '/z.y.txt'
|
||||||
|
@@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
112,
|
||||||
/**/
|
/**/
|
||||||
111,
|
111,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user