aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-23 20:10:28 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-06-30 13:13:08 +0200
commitd33aaa0f5f96afb1608a4a3eb2057da956a24b2b (patch)
tree914d11e9d5d4d769069a11841371d1cc8cd1a802 /test/functional/helpers.lua
parent7030d7daf1f40e5a3963340d1107d7b7a713df5f (diff)
downloadrneovim-d33aaa0f5f96afb1608a4a3eb2057da956a24b2b.tar.gz
rneovim-d33aaa0f5f96afb1608a4a3eb2057da956a24b2b.tar.bz2
rneovim-d33aaa0f5f96afb1608a4a3eb2057da956a24b2b.zip
libluv: use luv_set_callback to control callback execution
Disable the use of deferred API functions in a fast lua callback Correctly display error messages from a fast lua callback
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index e7a93238e7..95bff21ff5 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -686,6 +686,10 @@ local curbufmeths = create_callindex(curbuf)
local curwinmeths = create_callindex(curwin)
local curtabmeths = create_callindex(curtab)
+local function exec_lua(code, ...)
+ return meths.execute_lua(code, {...})
+end
+
local function redir_exec(cmd)
meths.set_var('__redir_exec_cmd', cmd)
nvim_command([[
@@ -778,6 +782,7 @@ local module = {
curwinmeths = curwinmeths,
eval = nvim_eval,
exc_exec = exc_exec,
+ exec_lua = exec_lua,
expect = expect,
expect_any = expect_any,
expect_msg_seq = expect_msg_seq,