summaryrefslogtreecommitdiff
path: root/test/test_temporary_file_management.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_temporary_file_management.vader')
-rw-r--r--test/test_temporary_file_management.vader6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_temporary_file_management.vader b/test/test_temporary_file_management.vader
index 6d1f0dfd..ae2bf251 100644
--- a/test/test_temporary_file_management.vader
+++ b/test/test_temporary_file_management.vader
@@ -35,7 +35,7 @@ Before:
call ale#linter#Define('foobar', {
\ 'name': 'testlinter',
- \ 'executable': 'echo',
+ \ 'executable': has('win32') ? 'cmd' : 'echo',
\ 'callback': 'TestCallback',
\ '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 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.
AssertNotEqual b:dir2, b:dir