TestBan: Clean up properly after completing test (#9994)
authorANAND <ClobberXD@protonmail.com>
Fri, 5 Jun 2020 18:04:14 +0000 (23:34 +0530)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2020 18:04:14 +0000 (20:04 +0200)
src/unittest/test_ban.cpp

index 2a95b945f83f589f3fde4eb91feafa20979ef613..bab2b9ee8fb4563e417de279274f2df665bd5caa 100644 (file)
@@ -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