Browse Source

[2850] Remove TearDown() method from ZoneTableSegmentMappedTest

Mukund Sivaraman 12 years ago
parent
commit
4325f3dfd8

+ 1 - 5
src/lib/datasrc/tests/memory/zone_table_segment_mapped_unittest.cc

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