diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-04-12 02:48:34 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-04-12 02:48:34 -0400 |
commit | ecc28fb2dd43551f349a071f9597cf7033f306f7 (patch) | |
tree | 6168d9aa93dbe58a0256b9a627b91b8cb3cb7448 /test/functional/helpers.lua | |
parent | e4975f82c9704aa5d52e18e578a449268654ee37 (diff) | |
parent | 1e767ad96fca7d64b2edcdd76337c7f2545475ef (diff) | |
download | rneovim-ecc28fb2dd43551f349a071f9597cf7033f306f7.tar.gz rneovim-ecc28fb2dd43551f349a071f9597cf7033f306f7.tar.bz2 rneovim-ecc28fb2dd43551f349a071f9597cf7033f306f7.zip |
Merge pull request #2117 from justinmk/fix1836
memline: fix segfaults
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 393b42dda5..27c94c34a8 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -18,6 +18,10 @@ if nvim_dir == nvim_prog then nvim_dir = "." end +-- Nvim "Unit Under Test" http://en.wikipedia.org/wiki/Device_under_test +local NvimUUT = {} +NvimUUT.__index = NvimUUT + local prepend_argv if os.getenv('VALGRIND') then @@ -49,6 +53,10 @@ end local session, loop_running, loop_stopped, last_error +local function set_session(s) + session = s +end + local function request(method, ...) local status, rv = session:request(method, ...) if not status then @@ -305,5 +313,6 @@ return { curwin = curwin, curtab = curtab, curbuf_contents = curbuf_contents, - wait = wait + wait = wait, + set_session = set_session } |