From 731a3f7cbbad1d2a7ad0b0b61883d11b23386fff Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 1 Dec 2016 17:11:11 +0100 Subject: [PATCH] test_pdu.c: fix condition inside CUnit assertion The test condition accidentally contained an assignment instead of the equal operator. --- tests/test_pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pdu.c b/tests/test_pdu.c index 512db0bb..13608308 100644 --- a/tests/test_pdu.c +++ b/tests/test_pdu.c @@ -264,7 +264,7 @@ t_encode_pdu1(void) { result = coap_add_token(pdu, 5, (unsigned char *)"token"); CU_ASSERT(result == 1); - CU_ASSERT(pdu->length = sizeof(teststr)); + CU_ASSERT(pdu->length == sizeof(teststr)); CU_ASSERT_PTR_NULL(pdu->data); CU_ASSERT(memcmp(pdu->hdr, teststr, sizeof(teststr)) == 0); }