mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.1020: tests call GetSwapFileList() before it is defined
Problem: Tests call GetSwapFileList() before it is defined. Solution: Move the call to after defining the function. (Christopher Plewright)
This commit is contained in:
@@ -161,13 +161,6 @@ if has('mac')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
" A previous (failed) test run may have left swap files behind. Delete them
|
|
||||||
" before running tests again, they might interfere.
|
|
||||||
for name in s:GetSwapFileList()
|
|
||||||
call delete(name)
|
|
||||||
endfor
|
|
||||||
|
|
||||||
|
|
||||||
" Prepare for calling test_garbagecollect_now().
|
" Prepare for calling test_garbagecollect_now().
|
||||||
let v:testing = 1
|
let v:testing = 1
|
||||||
|
|
||||||
@@ -210,6 +203,13 @@ func s:GetSwapFileList()
|
|||||||
return files
|
return files
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" A previous (failed) test run may have left swap files behind. Delete them
|
||||||
|
" before running tests again, they might interfere.
|
||||||
|
for name in s:GetSwapFileList()
|
||||||
|
call delete(name)
|
||||||
|
endfor
|
||||||
|
|
||||||
|
|
||||||
" Invoked when a test takes too much time.
|
" Invoked when a test takes too much time.
|
||||||
func TestTimeout(id)
|
func TestTimeout(id)
|
||||||
split test.log
|
split test.log
|
||||||
|
@@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
1020,
|
||||||
/**/
|
/**/
|
||||||
1019,
|
1019,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user