Test: remove artifacts from root directory

The tests would leave the following test files in the root directory:

    Xtest-functional-plugin-shada.shada
    Xtest-functional-plugin-shada.shada.tmp.f

Clean them up in teardown().
This commit is contained in:
Marco Hinz 2015-12-01 20:43:01 +01:00
parent 330794fb05
commit 483d4abee7
1 changed files with 5 additions and 0 deletions

View File

@ -2114,6 +2114,11 @@ describe('In plugin/shada.vim', function()
os.remove(fname_tmp)
end)
teardown(function()
os.remove(fname)
os.remove(fname_tmp)
end)
local shada_eq = function(expected, fname_)
local fd = io.open(fname_)
local mpack_result = fd:read('*a')