Skip to content

Commit 3a782ad

Browse files
authored
Merge pull request #1876 from zmostafa/iox-1871-fix-unit-test-semantics-for-gccv9.4
iox-#1871 Fix aggressive loop optimizations error with gcc9.4
2 parents 5c55953 + 64b8fb2 commit 3a782ad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/website/release-notes/iceoryx-unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
- `WaitSet::wait` returns if data was send before `WaitSet::attachState(.., State::HAS_{DATA, REQUEST, RESPONSE})` [\#1855](https://github.com/eclipse-iceoryx/iceoryx/issues/1855)
6868
- Provide a better error message when attempting to create a shared memory in read-only mode
6969
[\#1821](https://github.com/eclipse-iceoryx/iceoryx/issues/1821)
70+
- Can not build iceoryx with gcc 9.4 [\#1871](https://github.com/eclipse-iceoryx/iceoryx/issues/1871)
7071

7172
**Refactoring:**
7273

iceoryx_hoofs/test/moduletests/test_cxx_vector.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,9 @@ TEST_F(vector_test, EmplaceAtPositionAfterEndBeforeCapacityExceedsFails)
15121512
sut.emplace_back(0U);
15131513
sut.emplace_back(1U);
15141514

1515-
EXPECT_FALSE(sut.emplace(sut.size() + 1, 3U));
1516-
ASSERT_THAT(sut.size(), Eq(2U));
1515+
constexpr uint64_t EXPECTED_SIZE{2};
1516+
ASSERT_THAT(sut.size(), EXPECTED_SIZE);
1517+
EXPECT_FALSE(sut.emplace(EXPECTED_SIZE + 1, 3U));
1518+
ASSERT_THAT(sut.size(), EXPECTED_SIZE);
15171519
}
15181520
} // namespace

0 commit comments

Comments
 (0)