From 91882919de32d7f121f88ba1350293bf31ff484d Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 30 Jan 2020 01:47:46 +0900 Subject: setfperm --- test/lsp_settings.vimspec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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') -- cgit v1.2.3-54-g00ecf