From: Mukund Sivaraman Date: Fri, 12 Apr 2013 14:27:53 +0000 (+0530) Subject: [2831] Fix the segment that is used from the child X-Git-Tag: bind10-1.2.0beta1-release~457^2~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=408b43df795d7dbb4ee9d4a47cb3e4ae9ae1bba6;p=thirdparty%2Fkea.git [2831] Fix the segment that is used from the child --- diff --git a/src/lib/util/tests/memory_segment_mapped_unittest.cc b/src/lib/util/tests/memory_segment_mapped_unittest.cc index a94c85377e..8311a62762 100644 --- a/src/lib/util/tests/memory_segment_mapped_unittest.cc +++ b/src/lib/util/tests/memory_segment_mapped_unittest.cc @@ -393,7 +393,7 @@ TEST_F(MemorySegmentMappedTest, multiProcess) { if (child_pid == 0) { // child close(pipes[0]); MemorySegmentMapped sgmt(mapped_file); - void* ptr_child = segment_->getNamedAddress("test address"); + void* ptr_child = sgmt.getNamedAddress("test address"); EXPECT_TRUE(ptr_child); if (ptr_child) { const uint32_t val = *static_cast(ptr_child);