From 483d4abee7296ff96f1a06309e5422d0e16ee564 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 1 Dec 2015 20:43:01 +0100 Subject: [PATCH] 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(). --- test/functional/plugin/shada_spec.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/functional/plugin/shada_spec.lua b/test/functional/plugin/shada_spec.lua index 020bb11bbc..4100a30452 100644 --- a/test/functional/plugin/shada_spec.lua +++ b/test/functional/plugin/shada_spec.lua @@ -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')