diff options
author | w0rp <devw0rp@gmail.com> | 2019-01-04 14:51:55 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-01-04 14:51:55 +0000 |
commit | 4f3190daa88583523df89d4cb7add1584e0e9b7d (patch) | |
tree | 79204c89a5ee84e30d12023e1ed196b436425f2d /test | |
parent | 3b96ab43fb7adede47705bd3b6efcaddb315a68d (diff) | |
download | ale-4f3190daa88583523df89d4cb7add1584e0e9b7d.zip |
Fix a test on Windows
Diffstat (limited to 'test')
-rw-r--r-- | test/test_prepare_command.vader | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_prepare_command.vader b/test/test_prepare_command.vader index 4a12b9d0..6a71eaed 100644 --- a/test/test_prepare_command.vader +++ b/test/test_prepare_command.vader @@ -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' |