aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorANAND <ClobberXD@protonmail.com>2020-06-05 23:34:14 +0530
committerGitHub <noreply@github.com>2020-06-05 20:04:14 +0200
commit08c0b7696a8b15759c8fc203cc90fde21c2c76a9 (patch)
tree8f72a27795935b862132dc79ef26af910f1ce9cd
parent87b25e583dcb2bc1079a7b5906b97a787ac04be8 (diff)
downloadminetest-08c0b7696a8b15759c8fc203cc90fde21c2c76a9.tar.gz
minetest-08c0b7696a8b15759c8fc203cc90fde21c2c76a9.tar.bz2
minetest-08c0b7696a8b15759c8fc203cc90fde21c2c76a9.zip
TestBan: Clean up properly after completing test (#9994)
-rw-r--r--src/unittest/test_ban.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unittest/test_ban.cpp b/src/unittest/test_ban.cpp
index 2a95b945f..bab2b9ee8 100644
--- a/src/unittest/test_ban.cpp
+++ b/src/unittest/test_ban.cpp
@@ -61,6 +61,9 @@ void TestBan::runTests(IGameDef *gamedef)
reinitTestEnv();
TEST(testGetBanDescription);
+
+ // Delete leftover files
+ reinitTestEnv();
}
// This module is stateful due to disk writes, add helper to remove files