mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
test: startup_spec: cmd.exe escaping
This commit is contained in:
parent
68bef0a57d
commit
54cac3033f
@ -9,6 +9,7 @@ local nvim_prog = helpers.nvim_prog
|
|||||||
local nvim_set = helpers.nvim_set
|
local nvim_set = helpers.nvim_set
|
||||||
local read_file = helpers.read_file
|
local read_file = helpers.read_file
|
||||||
local retry = helpers.retry
|
local retry = helpers.retry
|
||||||
|
local iswin = helpers.iswin
|
||||||
|
|
||||||
describe('startup', function()
|
describe('startup', function()
|
||||||
before_each(function()
|
before_each(function()
|
||||||
@ -40,6 +41,9 @@ describe('startup', function()
|
|||||||
it('in a TTY: has("ttyin")==1 has("ttyout")==1', function()
|
it('in a TTY: has("ttyin")==1 has("ttyout")==1', function()
|
||||||
local screen = Screen.new(25, 3)
|
local screen = Screen.new(25, 3)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
|
if iswin() then
|
||||||
|
command([[set shellcmdflag=/s\ /c shellxquote=\"]])
|
||||||
|
end
|
||||||
-- Running in :terminal
|
-- Running in :terminal
|
||||||
command([[exe printf("terminal %s -u NONE -i NONE --cmd \"]]
|
command([[exe printf("terminal %s -u NONE -i NONE --cmd \"]]
|
||||||
..nvim_set..[[\" ]]
|
..nvim_set..[[\" ]]
|
||||||
@ -54,6 +58,9 @@ describe('startup', function()
|
|||||||
it('output to pipe: has("ttyin")==1 has("ttyout")==0', function()
|
it('output to pipe: has("ttyin")==1 has("ttyout")==0', function()
|
||||||
local screen = Screen.new(25, 5)
|
local screen = Screen.new(25, 5)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
|
if iswin() then
|
||||||
|
command([[set shellcmdflag=/s\ /c shellxquote=\"]])
|
||||||
|
end
|
||||||
-- Running in :terminal
|
-- Running in :terminal
|
||||||
command([[exe printf("terminal %s -u NONE -i NONE --cmd \"]]
|
command([[exe printf("terminal %s -u NONE -i NONE --cmd \"]]
|
||||||
..nvim_set..[[\" ]]
|
..nvim_set..[[\" ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user