aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-07-01 09:27:42 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-07-01 09:27:42 -0300
commitb656a954cfec0379a5bb2f7f5d1f28cbc03324df (patch)
treec8d6f5631df1e8eb69022cae647f6e0436254830 /test/unit/helpers.lua
parentbfadf5a28b550bf99101c17244d5ea1b926e40c3 (diff)
parent0ef80b9c2b922280c3ba2c0a8638f23ae57d6618 (diff)
downloadrneovim-b656a954cfec0379a5bb2f7f5d1f28cbc03324df.tar.gz
rneovim-b656a954cfec0379a5bb2f7f5d1f28cbc03324df.tar.bz2
rneovim-b656a954cfec0379a5bb2f7f5d1f28cbc03324df.zip
Merge PR #2650 'Data structure improvements'
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index 708e7a94ab..5bcc661226 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -136,15 +136,11 @@ end
-- initialize some global variables, this is still necessary to unit test
-- functions that rely on global state.
-local function vim_init()
- if vim_init_called ~= nil then
- return
- end
+do
local main = cimport('./src/nvim/main.h')
local time = cimport('./src/nvim/os/time.h')
time.time_init()
main.early_init()
- vim_init_called = true
end
-- C constants.
@@ -167,7 +163,6 @@ return {
lib = libnvim,
cstr = cstr,
to_cstr = to_cstr,
- vim_init = vim_init,
NULL = NULL,
OK = OK,
FAIL = FAIL