summaryrefslogtreecommitdiff
path: root/test/command_callback/test_staticcheck_command_callback.vader
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-10-25 14:24:56 +0100
committerGitHub <noreply@github.com>2018-10-25 14:24:56 +0100
commitb3829d043dec7c35870197eec4b50ab7a14ea1bf (patch)
tree3a51875d88a37de023f62f1ba871bdd4a08c02df /test/command_callback/test_staticcheck_command_callback.vader
parent68b55912990226003213c25e43a57847ac7f36f1 (diff)
parentd14db50c4404cfdd95a5d3a19e7d6574b69aa2f0 (diff)
downloadale-b3829d043dec7c35870197eec4b50ab7a14ea1bf.zip
Merge pull request #2012 from paihu/fix-cdstring-win32-change-drive
Fix #2011 MS Windows, lint error when current drive and target file drive is different.
Diffstat (limited to 'test/command_callback/test_staticcheck_command_callback.vader')
-rw-r--r--test/command_callback/test_staticcheck_command_callback.vader6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/command_callback/test_staticcheck_command_callback.vader b/test/command_callback/test_staticcheck_command_callback.vader
index 918c12a0..7f17b146 100644
--- a/test/command_callback/test_staticcheck_command_callback.vader
+++ b/test/command_callback/test_staticcheck_command_callback.vader
@@ -7,7 +7,7 @@ After:
Execute(The staticcheck callback should return the right defaults):
AssertLinter 'staticcheck',
- \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
+ \ ale#path#CdString(expand('%:p:h'))
\ . 'staticcheck '
\ . ale#Escape(expand('%' . ':t'))
@@ -15,7 +15,7 @@ Execute(The staticcheck callback should use configured options):
let b:ale_go_staticcheck_options = '-test'
AssertLinter 'staticcheck',
- \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
+ \ ale#path#CdString(expand('%:p:h'))
\ . 'staticcheck '
\ . '-test ' . ale#Escape(expand('%' . ':t'))
@@ -23,4 +23,4 @@ Execute(The staticcheck `lint_package` option should use the correct command):
let b:ale_go_staticcheck_lint_package = 1
AssertLinter 'staticcheck',
- \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && staticcheck .',
+ \ ale#path#CdString(expand('%:p:h')) . 'staticcheck .',