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