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:
parent
63be700fa7
commit
18fc2c206f
@ -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
|
||||
|
@ -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)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user