Skip to content

Commit

Permalink
Include TestWriterReserve test only for heap allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Jul 1, 2024
1 parent 3772abb commit 57301b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/system/tests/TestTLVPacketBufferBackingStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ TEST_F(TestTLVPacketBufferBackingStore, TestWriterReserveUnreserveDoesNotOverflo
EXPECT_EQ(error, CHIP_ERROR_INCORRECT_STATE);
}

#if CHIP_SYSTEM_PACKETBUFFER_FROM_CHIP_HEAP
TEST_F(TestTLVPacketBufferBackingStore, TestWriterReserve)
{
// Start with a too-small buffer.
Expand All @@ -333,3 +334,4 @@ TEST_F(TestTLVPacketBufferBackingStore, TestWriterReserve)
error = writer.Put(TLV::AnonymousTag(), static_cast<uint8_t>(7));
EXPECT_EQ(error, CHIP_NO_ERROR);
}
#endif

0 comments on commit 57301b2

Please sign in to comment.