~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to test/functional/server/server_spec.lua

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
local helpers = require('test.functional.helpers')
3
3
local nvim, eq, neq, eval = helpers.nvim, helpers.eq, helpers.neq, helpers.eval
4
4
local clear, funcs, meths = helpers.clear, helpers.funcs, helpers.meths
5
 
local os_is_windows = helpers.os_is_windows
 
5
local os_name = helpers.os_name
6
6
 
7
7
describe('serverstart(), serverstop()', function()
8
8
  before_each(clear)
39
39
    eq('', meths.get_vvar('servername'))
40
40
 
41
41
    -- v:servername will take the next available server.
42
 
    local servername = (os_is_windows()
 
42
    local servername = (os_name() == 'windows'
43
43
                        and [[\\.\pipe\Xtest-functional-server-server-pipe]]
44
44
                        or 'Xtest-functional-server-server-socket')
45
45
    funcs.serverstart(servername)