Skip to content

Commit

Permalink
unittests: fix tests-pkt for non-32bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Oct 15, 2019
1 parent 63be700 commit 18fc2c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions tests/unittests/tests-pkt/Makefile.include
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions tests/unittests/tests-pkt/tests-pkt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down

0 comments on commit 18fc2c2

Please sign in to comment.