diff options
author | ZyX <kp-pav@yandex.ru> | 2016-11-04 23:57:28 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-11 23:23:30 +0300 |
commit | 29ed5b3a39abb84d6af602b2d0a7680d9dab381c (patch) | |
tree | e7ed38d29180009f190cd568029909ac36682b7a /test/unit/helpers.lua | |
parent | b44257486297a0a1ffc3fa21d045de03d0504e1b (diff) | |
download | rneovim-29ed5b3a39abb84d6af602b2d0a7680d9dab381c.tar.gz rneovim-29ed5b3a39abb84d6af602b2d0a7680d9dab381c.tar.bz2 rneovim-29ed5b3a39abb84d6af602b2d0a7680d9dab381c.zip |
unittests: Fix lint errors
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index 61c1107a30..fbcbda7d58 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -7,6 +7,9 @@ local global_helpers = require('test.helpers') local assert = require('luassert') local say = require('say') +local posix = nil +local syscall = nil + local neq = global_helpers.neq local eq = global_helpers.eq local ok = global_helpers.ok @@ -355,9 +358,8 @@ end if os.getenv('NVIM_TEST_PRINT_SYSCALLS') == '1' then for k_, v_ in pairs(sc) do (function(k, v) - local f = sc[k] sc[k] = function(...) - local rets = {f(...)} + local rets = {v(...)} io.stderr:write(('%s(%s) = %s\n'):format(k, format_list({...}), format_list(rets))) return unpack(rets) |