mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
patch 9.1.0474: CI: Test_ColonEight() fails on github runners
Problem: CI: Test_ColonEight() fails on github runners (Ken Takata) Solution: Run the test for files on the C: drive, where dos shortnames are still enabled, refactor the tests to use a single setup function for the preparation fixes: #14954 closes: #14958 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
b8076f92a1
commit
d03882baac
@ -16,18 +16,14 @@ func TestIt(file, bits, expected)
|
|||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_ColonEight()
|
func s:SetupDir(dir)
|
||||||
let save_dir = getcwd()
|
|
||||||
|
|
||||||
" This could change for CygWin to //cygdrive/c .
|
|
||||||
let dir1 = 'c:/x.x.y'
|
|
||||||
let trycount = 5
|
let trycount = 5
|
||||||
while 1
|
while 1
|
||||||
if !filereadable(dir1) && !isdirectory(dir1)
|
if !filereadable(a:dir) && !isdirectory(a:dir)
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
if trycount == 1
|
if trycount == 1
|
||||||
call assert_report("Fatal: '" . dir1 . "' exists, cannot run this test")
|
call assert_report("Fatal: '" . a:dir . "' exists, cannot run this test")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
" When tests run in parallel the directory may exist, wait a bit until it
|
" When tests run in parallel the directory may exist, wait a bit until it
|
||||||
@ -35,6 +31,15 @@ func Test_ColonEight()
|
|||||||
sleep 5
|
sleep 5
|
||||||
let trycount -= 1
|
let trycount -= 1
|
||||||
endwhile
|
endwhile
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
|
func Test_ColonEight()
|
||||||
|
let save_dir = getcwd()
|
||||||
|
|
||||||
|
" This could change for CygWin to //cygdrive/c .
|
||||||
|
let dir1 = 'c:/x.x.y'
|
||||||
|
call s:SetupDir(dir1)
|
||||||
|
|
||||||
let file1 = dir1 . '/zz.y.txt'
|
let file1 = dir1 . '/zz.y.txt'
|
||||||
let nofile1 = dir1 . '/z.y.txt'
|
let nofile1 = dir1 . '/z.y.txt'
|
||||||
@ -78,8 +83,8 @@ func Test_ColonEight()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_ColonEight_MultiByte()
|
func Test_ColonEight_MultiByte()
|
||||||
let g:test_is_flaky = 1
|
let dir = 'c:/Xtest_C8MB'
|
||||||
let dir = 'Xtest'
|
call s:SetupDir(dir)
|
||||||
|
|
||||||
let file = dir . '/日本語のファイル.txt'
|
let file = dir . '/日本語のファイル.txt'
|
||||||
|
|
||||||
|
@ -704,6 +704,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 */
|
||||||
|
/**/
|
||||||
|
474,
|
||||||
/**/
|
/**/
|
||||||
473,
|
473,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user