Commit 396b3b1e63 for frr
commit 396b3b1e63d4317da283027423dcb1001a0f9835
Author: Mark Stapp <mjs@cisco.com>
Date: Wed Sep 23 10:18:29 2026 -0400
tests: use correct header length in pceplib tlv test
Require the unpadded header length in a pceplib tlv test
case.
Signed-off-by: Mark Stapp <mjs@cisco.com>
diff --git a/pceplib/test/pcep_msg_tlvs_test.c b/pceplib/test/pcep_msg_tlvs_test.c
index 6d8067d387..2f331ee6fb 100644
--- a/pceplib/test/pcep_msg_tlvs_test.c
+++ b/pceplib/test/pcep_msg_tlvs_test.c
@@ -219,7 +219,7 @@ void test_pcep_tlv_create_path_setup_type_capability(void)
pcep_encode_tlv(&tlv->header, versioning, tlv_buf);
CU_ASSERT_EQUAL(tlv->header.type,
PCEP_OBJ_TLV_TYPE_PATH_SETUP_TYPE_CAPABILITY);
- CU_ASSERT_EQUAL(tlv->header.encoded_tlv_length, sizeof(uint32_t) * 2);
+ CU_ASSERT_EQUAL(tlv->header.encoded_tlv_length, sizeof(uint32_t) + 3);
CU_ASSERT_PTR_NOT_NULL(tlv->pst_list);
assert(tlv != NULL);
CU_ASSERT_EQUAL(tlv->pst_list->num_entries, 3);