mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 00:22:41 +00:00
functests: Check logs in lua code
It is otherwise impossible to determine which test failed sanitizer/valgrind check. test/functional/helpers.lua module return was changed so that tests which do not provide after_each function to get new check will automatically fail.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- Sanity checks for buffer_* API calls via msgpack-rpc
|
||||
local helpers = require('test.functional.helpers')
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear, nvim, buffer = helpers.clear, helpers.nvim, helpers.buffer
|
||||
local curbuf, curwin, eq = helpers.curbuf, helpers.curwin, helpers.eq
|
||||
local curbufmeths, ok = helpers.curbufmeths, helpers.ok
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
local helpers = require('test.functional.helpers')
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local Screen = require('test.functional.ui.screen')
|
||||
|
||||
local clear = helpers.clear
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- Tests for nvim notifications
|
||||
local helpers = require('test.functional.helpers')
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local eq, clear, eval, execute, nvim, next_message =
|
||||
helpers.eq, helpers.clear, helpers.eval, helpers.execute, helpers.nvim,
|
||||
helpers.next_message
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Tests for some server->client RPC scenarios. Note that unlike with
|
||||
-- `rpcnotify`, to evaluate `rpcrequest` calls we need the client event loop to
|
||||
-- be running.
|
||||
local helpers = require('test.functional.helpers')
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear, nvim, eval = helpers.clear, helpers.nvim, helpers.eval
|
||||
local eq, neq, run, stop = helpers.eq, helpers.neq, helpers.run, helpers.stop
|
||||
local nvim_prog = helpers.nvim_prog
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- Sanity checks for tabpage_* API calls via msgpack-rpc
|
||||
local helpers = require('test.functional.helpers')
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear, nvim, tabpage, curtab, eq, ok =
|
||||
helpers.clear, helpers.nvim, helpers.tabpage, helpers.curtab, helpers.eq,
|
||||
helpers.ok
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- Sanity checks for vim_* API calls via msgpack-rpc
|
||||
local helpers = require('test.functional.helpers')
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local Screen = require('test.functional.ui.screen')
|
||||
local NIL = helpers.NIL
|
||||
local clear, nvim, eq, neq = helpers.clear, helpers.nvim, helpers.eq, helpers.neq
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- Sanity checks for window_* API calls via msgpack-rpc
|
||||
local helpers = require('test.functional.helpers')
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear, nvim, curbuf, curbuf_contents, window, curwin, eq, neq,
|
||||
ok, feed, insert, eval = helpers.clear, helpers.nvim, helpers.curbuf,
|
||||
helpers.curbuf_contents, helpers.window, helpers.curwin, helpers.eq,
|
||||
|
||||
Reference in New Issue
Block a user