aboutsummaryrefslogtreecommitdiff
path: root/test/unit/tempfile_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-09-06 18:36:00 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-09-11 05:17:52 +0000
commitf6088e79b098791dc04e42602692ab2bdd08ee78 (patch)
tree7956b881e4ee7c91fbf9e15a6668a0ed9414cae3 /test/unit/tempfile_spec.lua
parentc76feb338a14a0e6dea494c18fb2d22f474cfc0e (diff)
downloadrneovim-f6088e79b098791dc04e42602692ab2bdd08ee78.tar.gz
rneovim-f6088e79b098791dc04e42602692ab2bdd08ee78.tar.bz2
rneovim-f6088e79b098791dc04e42602692ab2bdd08ee78.zip
unit tests: avoid global scope; add missing cimports
temporarily comment out call to vim_deltempdir() to avoid segfault
Diffstat (limited to 'test/unit/tempfile_spec.lua')
-rw-r--r--test/unit/tempfile_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/tempfile_spec.lua b/test/unit/tempfile_spec.lua
index e558ff04c8..9b5cf8bfab 100644
--- a/test/unit/tempfile_spec.lua
+++ b/test/unit/tempfile_spec.lua
@@ -3,10 +3,11 @@ local helpers = require 'test.unit.helpers'
local os = helpers.cimport './src/nvim/os/os.h'
local tempfile = helpers.cimport './src/nvim/tempfile.h'
+-- os.mch_early_init
describe('tempfile related functions', function()
after_each(function()
- tempfile.vim_deltempdir()
+ -- tempfile.vim_deltempdir()
end)
local vim_gettempdir = function()