diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-27 22:07:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 22:07:23 +0100 |
commit | d109f5645bac1ff780385ff84b269e79b6f21020 (patch) | |
tree | dc1e94aad2610394d900d20fb0524fb96ceedbce /test/functional/helpers.lua | |
parent | e3c4c8a90e04316d1290729f6952a89ea2733cb6 (diff) | |
parent | 6cf186edb5dec13bc7f4cd57be726d124af578de (diff) | |
download | rneovim-d109f5645bac1ff780385ff84b269e79b6f21020.tar.gz rneovim-d109f5645bac1ff780385ff84b269e79b6f21020.tar.bz2 rneovim-d109f5645bac1ff780385ff84b269e79b6f21020.zip |
Merge #7640 'term' option
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 272d2045c9..da334d4ac6 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -603,6 +603,15 @@ local function get_pathsep() return funcs.fnamemodify('.', ':p'):sub(-1) end +-- Returns a valid, platform-independent $NVIM_LISTEN_ADDRESS. +-- Useful for communicating with child instances. +local function new_pipename() + -- HACK: Start a server temporarily, get the name, then stop it. + local pipename = nvim_eval('serverstart()') + funcs.serverstop(pipename) + return pipename +end + local function missing_provider(provider) if provider == 'ruby' then local prog = funcs['provider#' .. provider .. '#Detect']() @@ -732,6 +741,7 @@ local module = { missing_provider = missing_provider, alter_slashes = alter_slashes, hexdump = hexdump, + new_pipename = new_pipename, } return function(after_each) |