BIND 10 trac2831, updated. c1465e69b3d272bf4867d99e47c63659f41c4db3 [2831] Check that the segment actually shrunk

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Apr 12 14:11:18 UTC 2013


The branch, trac2831 has been updated
       via  c1465e69b3d272bf4867d99e47c63659f41c4db3 (commit)
      from  36389eed513783f9ccb0b7248fe0c5909ef2a36d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c1465e69b3d272bf4867d99e47c63659f41c4db3
Author: Mukund Sivaraman <muks at isc.org>
Date:   Fri Apr 12 19:41:04 2013 +0530

    [2831] Check that the segment actually shrunk

-----------------------------------------------------------------------

Summary of changes:
 .../util/tests/memory_segment_mapped_unittest.cc   |    3 +++
 1 file changed, 3 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/util/tests/memory_segment_mapped_unittest.cc b/src/lib/util/tests/memory_segment_mapped_unittest.cc
index 18173e8..1931bd8 100644
--- a/src/lib/util/tests/memory_segment_mapped_unittest.cc
+++ b/src/lib/util/tests/memory_segment_mapped_unittest.cc
@@ -355,11 +355,14 @@ 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) {



More information about the bind10-changes mailing list