From a6ac22af3bf2a601c30ad9303844d531fc6abd3e Mon Sep 17 00:00:00 2001 From: Martine Lenders <m.lenders@fu-berlin.de> Date: Mon, 2 Jul 2018 15:44:24 +0200 Subject: [PATCH] tests: fix gnrc_ndp tests for new alignment --- tests/gnrc_ndp/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/gnrc_ndp/main.c b/tests/gnrc_ndp/main.c index b3b214979d..86452dcbff 100644 --- a/tests/gnrc_ndp/main.c +++ b/tests/gnrc_ndp/main.c @@ -79,7 +79,9 @@ static void set_up(void) static void fill_pktbuf(void) { gnrc_pktsnip_t *pkt = gnrc_pktbuf_add(NULL, NULL, - GNRC_PKTBUF_SIZE - sizeof(gnrc_pktsnip_t), + /* 24 = sizeof(gnrc_pktsnip_t) + + * potential alignment */ + GNRC_PKTBUF_SIZE - 24U, GNRC_NETTYPE_UNDEF); TEST_ASSERT_NOT_NULL(pkt); TEST_ASSERT(gnrc_pktbuf_is_sane()); -- GitLab