diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-11 16:02:47 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-11 23:23:49 +0300 |
commit | e2a578f40dbd4836330402a44844c7ef8a0df5c5 (patch) | |
tree | ab2b04b6d0228e7d5a4ef6d611971f063a17be17 /test/unit/os/shell_spec.lua | |
parent | 9400466282918396c814ef456d0f65dca51b8889 (diff) | |
download | rneovim-e2a578f40dbd4836330402a44844c7ef8a0df5c5.tar.gz rneovim-e2a578f40dbd4836330402a44844c7ef8a0df5c5.tar.bz2 rneovim-e2a578f40dbd4836330402a44844c7ef8a0df5c5.zip |
unittests: Do not import libnvim or headers in main process
Slows down unit tests much, but gets rid of as much preserved state as possible.
Diffstat (limited to 'test/unit/os/shell_spec.lua')
-rw-r--r-- | test/unit/os/shell_spec.lua | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/test/unit/os/shell_spec.lua b/test/unit/os/shell_spec.lua index de39477b19..e53a510f1f 100644 --- a/test/unit/os/shell_spec.lua +++ b/test/unit/os/shell_spec.lua @@ -11,6 +11,7 @@ local ffi, eq = helpers.ffi, helpers.eq local intern = helpers.internalize local to_cstr = helpers.to_cstr local NULL = ffi.cast('void *', 0) +local deferred_call = deferred_call describe('shell functions', function() before_each(function() @@ -73,25 +74,13 @@ describe('shell functions', function() eq(0, status) end) - it ('returns non-zero exit code', function() + itp('returns non-zero exit code', function() local status = os_system('exit 2') eq(2, status) end) end) describe('shell_build_argv', function() - local saved_opts = {} - - setup(function() - saved_opts.p_sh = cimported.p_sh - saved_opts.p_shcf = cimported.p_shcf - end) - - teardown(function() - cimported.p_sh = saved_opts.p_sh - cimported.p_shcf = saved_opts.p_shcf - end) - itp('works with NULL arguments', function() eq({'/bin/bash'}, shell_build_argv(nil, nil)) end) |