Skip the command#Run test for fixers on Windows

This commit is contained in:
w0rp 2019-02-26 16:57:57 +00:00
parent 38009b8e58
commit 37a1d24a36
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83

View File

@ -816,9 +816,14 @@ Execute(ALEFix should apply autocmds):
AssertEqual g:post_success, 1
Execute(ALEFix should support ale#command#Run):
let g:ale_fixers.testft = ['CatLineDeferred']
ALEFix
call ale#test#FlushJobs()
if has('win32')
" Just skip this test on Windows, we can't run it.
call setline(1, ['a', 'b', 'c', 'd'])
else
let g:ale_fixers.testft = ['CatLineDeferred']
ALEFix
call ale#test#FlushJobs()
endif
Expect(The extra line should be added):
a