From 57301b2101ebfbcd541d51476d143afe450a50a8 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bokowy Date: Mon, 1 Jul 2024 11:21:23 +0200 Subject: [PATCH] Include TestWriterReserve test only for heap allocator --- src/system/tests/TestTLVPacketBufferBackingStore.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/tests/TestTLVPacketBufferBackingStore.cpp b/src/system/tests/TestTLVPacketBufferBackingStore.cpp index 4841ea56c18edf..bb6761d6b3d987 100644 --- a/src/system/tests/TestTLVPacketBufferBackingStore.cpp +++ b/src/system/tests/TestTLVPacketBufferBackingStore.cpp @@ -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. @@ -333,3 +334,4 @@ TEST_F(TestTLVPacketBufferBackingStore, TestWriterReserve) error = writer.Put(TLV::AnonymousTag(), static_cast(7)); EXPECT_EQ(error, CHIP_NO_ERROR); } +#endif