unit tests: initialize everything

This commit is contained in:
Justin M. Keyes
2014-09-10 01:17:07 +00:00
parent f6088e79b0
commit 99a9161bac
4 changed files with 22 additions and 13 deletions

View File

@@ -24,11 +24,7 @@ local NULL = ffi.cast('void *', 0)
describe('shell functions', function()
setup(function()
-- the logging functions are complain if I don't do this
shell.init_homedir()
shell.event_init()
-- os_system() can't work when the p_sh and p_shcf variables are unset
shell.p_sh = to_cstr('/bin/bash')
shell.p_shcf = to_cstr('-c')