diff options
author | ZyX <kp-pav@yandex.ru> | 2016-04-24 02:53:11 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-06-10 21:50:49 +0300 |
commit | ff470bb853397fcb25bfa5dd952ebb32307b7875 (patch) | |
tree | f2afc180ec872c0ed186a402b332de941cdaf53c /test/functional/legacy/061_undo_tree_spec.lua | |
parent | a160590e40342f013b7da45d2ab0e1c6ed636d35 (diff) | |
download | rneovim-ff470bb853397fcb25bfa5dd952ebb32307b7875.tar.gz rneovim-ff470bb853397fcb25bfa5dd952ebb32307b7875.tar.bz2 rneovim-ff470bb853397fcb25bfa5dd952ebb32307b7875.zip |
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.
Diffstat (limited to 'test/functional/legacy/061_undo_tree_spec.lua')
-rw-r--r-- | test/functional/legacy/061_undo_tree_spec.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/functional/legacy/061_undo_tree_spec.lua b/test/functional/legacy/061_undo_tree_spec.lua index 350a77b2c5..9bf69ccba1 100644 --- a/test/functional/legacy/061_undo_tree_spec.lua +++ b/test/functional/legacy/061_undo_tree_spec.lua @@ -1,9 +1,15 @@ -- Tests for undo tree and :earlier and :later. +local helpers = require('test.functional.helpers')(after_each) -local helpers = require('test.functional.helpers') -local expect, feed, source = helpers.expect, helpers.feed, helpers.source -local eval, clear, execute = helpers.eval, helpers.clear, helpers.execute -local write_file, command, eq = helpers.write_file, helpers.command, helpers.eq +local write_file = helpers.write_file +local execute = helpers.execute +local command = helpers.command +local source = helpers.source +local expect = helpers.expect +local clear = helpers.clear +local feed = helpers.feed +local eval = helpers.eval +local eq = helpers.eq local function expect_empty_buffer() -- The space will be removed by helpers.dedent but is needed because dedent |