aboutsummaryrefslogtreecommitdiff
path: root/test/unit/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-09-10 01:17:07 +0000
committerJustin M. Keyes <justinkz@gmail.com>2014-09-11 08:58:17 +0000
commit99a9161bace8200aa611f6feefcc2ac3eda93251 (patch)
tree53b6764cd02f55d11ff6f6f56a91d358b367ea7d /test/unit/helpers.lua
parentf6088e79b098791dc04e42602692ab2bdd08ee78 (diff)
downloadrneovim-99a9161bace8200aa611f6feefcc2ac3eda93251.tar.gz
rneovim-99a9161bace8200aa611f6feefcc2ac3eda93251.tar.bz2
rneovim-99a9161bace8200aa611f6feefcc2ac3eda93251.zip
unit tests: initialize everything
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r--test/unit/helpers.lua21
1 files changed, 19 insertions, 2 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua
index 1323893ae2..3f1984f6de 100644
--- a/test/unit/helpers.lua
+++ b/test/unit/helpers.lua
@@ -127,8 +127,25 @@ local function vim_init()
return
end
-- import os_unix.h for mch_early_init(), which initializes some globals
- local os = cimport('./src/nvim/os_unix.h')
- os.mch_early_init()
+ local all = cimport('./src/nvim/os_unix.h',
+ './src/nvim/misc1.h',
+ './src/nvim/eval.h',
+ './src/nvim/os_unix.h',
+ './src/nvim/option.h',
+ './src/nvim/ex_cmds2.h',
+ './src/nvim/window.h',
+ './src/nvim/ops.h',
+ './src/nvim/normal.h',
+ './src/nvim/mbyte.h')
+ all.mch_early_init()
+ all.mb_init()
+ all.eval_init()
+ all.init_normal_cmds()
+ all.win_alloc_first()
+ all.init_yank()
+ all.init_homedir()
+ all.set_init_1()
+ all.set_lang_var()
vim_init_called = true
end