Browse Source

Delete file generated by tests

Michal 'vorner' Vaner 11 years ago
parent
commit
b8fa96e349
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/bin/auth/tests/datasrc_clients_builder_unittest.cc

+ 6 - 0
src/bin/auth/tests/datasrc_clients_builder_unittest.cc

@@ -43,6 +43,7 @@
 #include <string>
 #include <sstream>
 #include <cerrno>
+#include <unistd.h>
 
 using isc::data::ConstElementPtr;
 using namespace isc::dns;
@@ -69,6 +70,11 @@ protected:
 
     }
 
+    void TearDown() {
+        // Some tests create this file. Delete it if it exists.
+        unlink(TEST_DATA_BUILDDIR "/test1.zone.image");
+    }
+
     void configureZones();      // used for loadzone related tests
 
     ClientListMapPtr clients_map; // configured clients