Get some more random tests to work on Windows
This commit is contained in:
parent
1c5253b928
commit
26195efa0b
@ -35,7 +35,7 @@ Before:
|
|||||||
|
|
||||||
call ale#linter#Define('foobar', {
|
call ale#linter#Define('foobar', {
|
||||||
\ 'name': 'testlinter',
|
\ 'name': 'testlinter',
|
||||||
\ 'executable': 'echo',
|
\ 'executable': has('win32') ? 'cmd' : 'echo',
|
||||||
\ 'callback': 'TestCallback',
|
\ 'callback': 'TestCallback',
|
||||||
\ 'command_callback': 'TestCommandCallback',
|
\ 'command_callback': 'TestCommandCallback',
|
||||||
\})
|
\})
|
||||||
@ -100,7 +100,9 @@ Execute(ALE should create and delete directories for ale#engine#CreateDirectory(
|
|||||||
|
|
||||||
" We should get the correct file permissions.
|
" We should get the correct file permissions.
|
||||||
" We want to ensure that the directory is not readable by 'other'
|
" We want to ensure that the directory is not readable by 'other'
|
||||||
AssertEqual 'rwxr-x---', getfperm(b:dir)
|
if has('unix')
|
||||||
|
AssertEqual 'rwxr-x---', getfperm(b:dir)
|
||||||
|
endif
|
||||||
|
|
||||||
" The two directories shouldn't be the same.
|
" The two directories shouldn't be the same.
|
||||||
AssertNotEqual b:dir2, b:dir
|
AssertNotEqual b:dir2, b:dir
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
Execute($TMPDIR should be set to a default value if unset):
|
Execute($TMPDIR should be set to a default value if unset):
|
||||||
AssertEqual '/tmp', $TMPDIR
|
if has('unix')
|
||||||
|
AssertEqual '/tmp', $TMPDIR
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user