aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-02 11:10:25 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-04 09:36:52 +0100
commit54cac3033f2c6e27c677681e8ca6d21e3fd9fc0a (patch)
tree35713ee0c8ed11c4991515112d6ff01e1a15a0b4
parent68bef0a57de3c376406a0391c9ccd4099f7a0328 (diff)
downloadrneovim-54cac3033f2c6e27c677681e8ca6d21e3fd9fc0a.tar.gz
rneovim-54cac3033f2c6e27c677681e8ca6d21e3fd9fc0a.tar.bz2
rneovim-54cac3033f2c6e27c677681e8ca6d21e3fd9fc0a.zip
test: startup_spec: cmd.exe escaping
-rw-r--r--test/functional/core/startup_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 08b59db627..ae7f949e52 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -9,6 +9,7 @@ local nvim_prog = helpers.nvim_prog
local nvim_set = helpers.nvim_set
local read_file = helpers.read_file
local retry = helpers.retry
+local iswin = helpers.iswin
describe('startup', function()
before_each(function()
@@ -40,6 +41,9 @@ describe('startup', function()
it('in a TTY: has("ttyin")==1 has("ttyout")==1', function()
local screen = Screen.new(25, 3)
screen:attach()
+ if iswin() then
+ command([[set shellcmdflag=/s\ /c shellxquote=\"]])
+ end
-- Running in :terminal
command([[exe printf("terminal %s -u NONE -i NONE --cmd \"]]
..nvim_set..[[\" ]]
@@ -54,6 +58,9 @@ describe('startup', function()
it('output to pipe: has("ttyin")==1 has("ttyout")==0', function()
local screen = Screen.new(25, 5)
screen:attach()
+ if iswin() then
+ command([[set shellcmdflag=/s\ /c shellxquote=\"]])
+ end
-- Running in :terminal
command([[exe printf("terminal %s -u NONE -i NONE --cmd \"]]
..nvim_set..[[\" ]]