mirror of
https://github.com/dense-analysis/ale
synced 2025-03-03 11:50:26 +00:00
Fix a test on Windows
This commit is contained in:
parent
3b96ab43fb
commit
4f3190daa8
@ -64,7 +64,11 @@ Execute(cmd /s/c as a string should be used on Windows):
|
||||
Execute(Setting ale_shell should cause ale#job#PrepareCommand to use set shell):
|
||||
let g:ale_shell = '/foo/bar'
|
||||
|
||||
AssertEqual ['/foo/bar', '-c', 'foobar'], ale#job#PrepareCommand(bufnr(''), "foobar")
|
||||
if has('win32')
|
||||
AssertEqual ['/foo/bar', '/c', 'foobar'], ale#job#PrepareCommand(bufnr(''), "foobar")
|
||||
else
|
||||
AssertEqual ['/foo/bar', '-c', 'foobar'], ale#job#PrepareCommand(bufnr(''), "foobar")
|
||||
endif
|
||||
|
||||
let g:ale_shell_arguments = '-x'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user