Skip to content

Commit

Permalink
iox-eclipse-iceoryx#971 Remove success output in shared memory object
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Eltzschig <me@elchris.org>
  • Loading branch information
elfenpiff authored and andre-nguyen committed Apr 22, 2022
1 parent b388871 commit 3c7743d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions iceoryx_hoofs/source/posix_wrapper/shared_memory_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ SharedMemoryObject::SharedMemoryObject(const SharedMemory::Name_t& name,

if (m_isInitialized && m_sharedMemory->hasOwnership())
{
std::clog << "Reserving " << m_memorySizeInBytes << " bytes in the shared memory [" << name << "]" << std::endl;
if (platform::IOX_SHM_WRITE_ZEROS_ON_CREATION)
{
// this lock is required for the case that multiple threads are creating multiple
Expand All @@ -139,7 +138,6 @@ SharedMemoryObject::SharedMemoryObject(const SharedMemory::Name_t& name,

memset(m_memoryMap->getBaseAddress(), 0, m_memorySizeInBytes);
}
std::clog << "[ Reserving shared memory successful ] " << std::endl;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ def test_exit_code(self, proc_info):
def test_full_output(self, proc_output, roudi_process):
with assertSequentialStdout(proc_output, roudi_process) as cm:
cm.assertInStdout('Log level set to:')
cm.assertInStdout('[ Reserving shared memory successful ]')
cm.assertInStdout('Registered memory segment')
cm.assertInStdout('[ Reserving shared memory successful ]')
cm.assertInStdout('Roudi registered payload data segment')
cm.assertInStdout('RouDi is ready for clients')

if os.name != 'nt':
Expand All @@ -82,8 +78,4 @@ def test_full_output(self, proc_output, roudi_process):
def test_out_of_order(self, proc_output, roudi_process):
with assertSequentialStdout(proc_output, roudi_process) as cm:
cm.assertInStdout('Log level set to:')
cm.assertInStdout('[ Reserving shared memory successful ]')
cm.assertInStdout('Registered memory segment')
cm.assertInStdout('[ Reserving shared memory successful ]')
cm.assertInStdout('Roudi registered payload data segment')
cm.assertInStdout('RouDi is ready for clients')

0 comments on commit 3c7743d

Please sign in to comment.