1
0
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:
Marian Buschsieweke 2019-10-15 12:19:36 +02:00 committed by GitHub
commit 68fcb733af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)));