]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2831] removed test for segment size after shrink.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 12 Apr 2013 23:09:21 +0000 (16:09 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 12 Apr 2013 23:09:21 +0000 (16:09 -0700)
I don't think the underlying boost shrink_to_fit() ensures this.

src/lib/util/tests/memory_segment_mapped_unittest.cc

index 18adad8738751c466d30659657896f83a9bc7e21..964735f71235bee3da318171bcf6131638c6c1c4 100644 (file)
@@ -357,13 +357,11 @@ TEST_F(MemorySegmentMappedTest, namedAddress) {
         checkNamedData(it->first, it->second, *segment_);
     }
 
-    const size_t old_size = segment_->getSize();
     // Confirm they are still valid, while we shrink the segment
     BOOST_FOREACH(TestData::value_type e, data_list) {
         checkNamedData(e.first, e.second, *segment_, true);
         segment_->shrinkToFit();
     }
-    EXPECT_GT(old_size, segment_->getSize());
 }
 
 TEST_F(MemorySegmentMappedTest, multiProcess) {