Windows: fix serverstart functional test

This commit is contained in:
Rui Abreu Ferreira 2015-12-29 21:47:01 +00:00 committed by Seth Jackson
parent d8a2007d47
commit 091e885d44

View File

@ -38,8 +38,13 @@ describe('serverstart(), serverstop()', function()
eq('', eval('v:servername'))
-- v:servername will take the next available server.
nvim('command', "call serverstart('test_server_socket')")
eq('test_server_socket', eval('v:servername'))
if eval('has("win32")') then
nvim('command', "call serverstart('\\\\.\\pipe\\test_server_pipe')")
eq('\\\\.\\pipe\\test_server_pipe', eval('v:servername'))
else
nvim('command', "call serverstart('test_server_socket')")
eq('test_server_socket', eval('v:servername'))
end
end)
it('serverstop() ignores invalid input', function()