Browse Source

[2831] Fix the segment that is used from the child

Mukund Sivaraman 12 years ago
parent
commit
408b43df79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/util/tests/memory_segment_mapped_unittest.cc

+ 1 - 1
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<const uint32_t*>(ptr_child);