mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
vim-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)
6572a90287
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
ab7bd119d7
commit
5f4e0a005b
@ -131,13 +131,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
|
||||||
|
|
||||||
@ -176,6 +169,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
|
||||||
|
Loading…
Reference in New Issue
Block a user