1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

unittests: fix tests-pkt for non-32bit platforms

This commit is contained in:
Martine Lenders 2019-10-15 09:52:44 +02:00
parent 63be700fa7
commit 18fc2c206f
2 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1 @@
USEMODULE += gnrc_ipv6
# Test assumes 32-bit width for `size_t` which is only the case on our 32-bit
# platforms
FEATURES_REQUIRED += arch_32bit

View File

@ -185,8 +185,8 @@ static void test_pkt_equals_iolist(void)
TEST_ASSERT_EQUAL_INT(0, memcmp(&iol, &pkt, sizeof(iol)));
/* check size position */
iol.iol_len = 0x12345678;
pkt.size = 0x12345678;
iol.iol_len = (size_t)0x12345678;
pkt.size = (size_t)0x12345678;
TEST_ASSERT_EQUAL_INT(0, memcmp(&iol, &pkt, sizeof(iol)));