]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2850] Remove TearDown() method from ZoneTableSegmentMappedTest
authorMukund Sivaraman <muks@isc.org>
Fri, 3 May 2013 01:29:38 +0000 (06:59 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 3 May 2013 01:29:38 +0000 (06:59 +0530)
src/lib/datasrc/tests/memory/zone_table_segment_mapped_unittest.cc

index ff8445ae49eedb40f0ec4919ebbe3f597f7dc3e6..ebe9b3af6dcd82f479ea3513879a431b01db01fc 100644 (file)
@@ -46,12 +46,8 @@ protected:
     }
 
     ~ZoneTableSegmentMappedTest() {
-        boost::interprocess::file_mapping::remove(mapped_file.c_str());
-    }
-
-    void TearDown() {
         ZoneTableSegment::destroy(ztable_segment_);
-        ztable_segment_ = NULL;
+        boost::interprocess::file_mapping::remove(mapped_file.c_str());
     }
 
     ZoneTableSegment* ztable_segment_;