Skip to content

Commit

Permalink
iox-eclipse-iceoryx#454 fix review findigs on operator logstream
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Belloche <[email protected]>
  • Loading branch information
JimmyBch committed Jan 8, 2021
1 parent 2f57434 commit cb2c166
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions iceoryx_posh/test/moduletests/test_roudi_memory_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ TEST_F(RouDiMemoryManager_Test, OperatorTest)
for(int16_t i = 0; i < nbTestCase; i++)
{
iox::log::LogStream logStream(loggerMock);
iox::log::LogStream logStreamResult(loggerMockResult);
logStream << m_testCombinationRoudiMemoryManagerError[i];
logStreamResult << m_testResultOperatorMethod[i];
EXPECT_EQ(*::testing::PrintToString(logStream).c_str(), *::testing::PrintToString(logStreamResult).c_str());
logStream.Flush();
EXPECT_THAT(loggerMock.m_logs[i].message, Eq(m_testResultOperatorMethod[i]));
}
}

0 comments on commit cb2c166

Please sign in to comment.