mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #12456 from miri64/tests/fix/unittests-pkt-32-bit
unittests: fix `tests-pkt` for non-32bit platforms
This commit is contained in:
commit
68fcb733af
@ -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