aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-30 01:47:46 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-30 01:47:46 +0900
commit91882919de32d7f121f88ba1350293bf31ff484d (patch)
tree23925f293c21e667375cbf77d68c4ed07235899a /test
parent2fa26259015237d3fce193a7e07ab5d3c1fbbc79 (diff)
downloadvim-lsp-settings-91882919de32d7f121f88ba1350293bf31ff484d.tar.gz
vim-lsp-settings-91882919de32d7f121f88ba1350293bf31ff484d.tar.bz2
vim-lsp-settings-91882919de32d7f121f88ba1350293bf31ff484d.zip
setfperm
Diffstat (limited to 'test')
-rw-r--r--test/lsp_settings.vimspec7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/lsp_settings.vimspec b/test/lsp_settings.vimspec
index ff59d09..a6055c9 100644
--- a/test/lsp_settings.vimspec
+++ b/test/lsp_settings.vimspec
@@ -28,7 +28,12 @@ Describe lsp_settings
try
call delete(l:servers_dir . '/foo-bar', 'rf')
call mkdir(l:servers_dir . '/foo-bar', 'p')
- call writefile(['echo foo-bar'], l:servers_dir . '/foo-bar/foo-bar.cmd')
+ if has('win32')
+ call writefile(['@echo off', 'echo foo-bar'], l:servers_dir . '/foo-bar/foo-bar.cmd')
+ else
+ call writefile(['#!/bin/sh', 'echo foo-bar'], l:servers_dir . '/foo-bar/foo-bar')
+ call setfperm(l:servers_dir . '/foo-bar/foo-bar', 'rwxr-xr-x')
+ endif
Assert Equals(lsp_settings#executable('foo-bar'), 1)
finally
call delete(l:servers_dir . '/foo-bar', 'rf')