diff options
author | w0rp <devw0rp@gmail.com> | 2018-01-17 18:08:17 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-01-17 18:08:17 +0000 |
commit | 045c92ed655214ef7503c2d592e41eb0ba4bf041 (patch) | |
tree | 61c1bd04cd2f9062e942dc882a4c0b14217ab713 /test/test_history_saving.vader | |
parent | f6af75aac46f2d4ac72ea8256ac871f7cbf158f6 (diff) | |
download | ale-045c92ed655214ef7503c2d592e41eb0ba4bf041.zip |
Fix #1298 - Escape commands for PowerShell
Diffstat (limited to 'test/test_history_saving.vader')
-rw-r--r-- | test/test_history_saving.vader | 4 |
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 |