summaryrefslogtreecommitdiff
path: root/test/test_history_saving.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-01-17 18:08:17 +0000
committerw0rp <devw0rp@gmail.com>2018-01-17 18:08:17 +0000
commit045c92ed655214ef7503c2d592e41eb0ba4bf041 (patch)
tree61c1bd04cd2f9062e942dc882a4c0b14217ab713 /test/test_history_saving.vader
parentf6af75aac46f2d4ac72ea8256ac871f7cbf158f6 (diff)
downloadale-045c92ed655214ef7503c2d592e41eb0ba4bf041.zip
Fix #1298 - Escape commands for PowerShell
Diffstat (limited to 'test/test_history_saving.vader')
-rw-r--r--test/test_history_saving.vader4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_history_saving.vader b/test/test_history_saving.vader
index 020ceb53..7dabcd9d 100644
--- a/test/test_history_saving.vader
+++ b/test/test_history_saving.vader
@@ -76,7 +76,7 @@ Execute(History should be set when commands are run):
AssertEqual sort(['status', 'exit_code', 'job_id', 'command']), sort(keys(g:history[0]))
if has('win32')
- AssertEqual 'cmd /c echo command history test', g:history[0].command
+ AssertEqual 'cmd /s/c "echo command history test"', g:history[0].command
else
AssertEqual ['/bin/sh', '-c', '/bin/sh -c ''echo command history test'''], g:history[0].command
endif
@@ -151,7 +151,7 @@ Execute(The history should be updated when fixers are run):
AssertEqual ['finished'], map(copy(b:ale_history), 'v:val.status')
if has('win32')
- AssertEqual 'cmd /c echo foo ', split(b:ale_history[0].command, '<')[0]
+ AssertEqual 'cmd /s/c "echo foo ', split(b:ale_history[0].command, '<')[0]
else
AssertEqual '/bin/sh -c echo foo ', split(join(b:ale_history[0].command), '<')[0]
endif