Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1871 Update vector unit test to fix aggressive lo…
Browse files Browse the repository at this point in the history
…op optimizations error

Signed-off-by: Ziad Mostafa <[email protected]>
  • Loading branch information
Ziad Mostafa committed Feb 6, 2023
1 parent 5c55953 commit 64b8fb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/website/release-notes/iceoryx-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
- `WaitSet::wait` returns if data was send before `WaitSet::attachState(.., State::HAS_{DATA, REQUEST, RESPONSE})` [\#1855](https://github.com/eclipse-iceoryx/iceoryx/issues/1855)
- Provide a better error message when attempting to create a shared memory in read-only mode
[\#1821](https://github.com/eclipse-iceoryx/iceoryx/issues/1821)
- Can not build iceoryx with gcc 9.4 [\#1871](https://github.com/eclipse-iceoryx/iceoryx/issues/1871)

**Refactoring:**

Expand Down
6 changes: 4 additions & 2 deletions iceoryx_hoofs/test/moduletests/test_cxx_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,9 @@ TEST_F(vector_test, EmplaceAtPositionAfterEndBeforeCapacityExceedsFails)
sut.emplace_back(0U);
sut.emplace_back(1U);

EXPECT_FALSE(sut.emplace(sut.size() + 1, 3U));
ASSERT_THAT(sut.size(), Eq(2U));
constexpr uint64_t EXPECTED_SIZE{2};
ASSERT_THAT(sut.size(), EXPECTED_SIZE);
EXPECT_FALSE(sut.emplace(EXPECTED_SIZE + 1, 3U));
ASSERT_THAT(sut.size(), EXPECTED_SIZE);
}
} // namespace

0 comments on commit 64b8fb2

Please sign in to comment.