Skip to content

Commit

Permalink
fixup! tests: adapt tests for gnrc_netif checks
Browse files Browse the repository at this point in the history
Fix `gnrc_ndp` test by emptying the queue.
  • Loading branch information
miri64 committed Jan 19, 2019
1 parent c3698fa commit 27cdacc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/gnrc_ndp/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ static void test_nbr_sol_send(const ipv6_addr_t *src)
gnrc_pktsnip_t *pkt;
ndp_nbr_sol_t *nbr_sol;

while (msg_try_receive(&msg) == 1) {
/* empty message queue */
}
TEST_ASSERT_NOT_NULL(test_netif);
gnrc_ndp_nbr_sol_send(&test_tgt, test_netif, src, &test_dst, NULL);
msg_receive(&msg);
Expand Down Expand Up @@ -973,7 +976,7 @@ static int _netdev_test_proto(netdev_t *dev, void *value, size_t max_len)
{
(void)dev;
assert(max_len == sizeof(gnrc_nettype_t));
*((gnrc_nettype_t *)value) = sizeof(GNRC_NETTYPE_SIXLOWPAN);
*((gnrc_nettype_t *)value) = GNRC_NETTYPE_UNDEF;
return sizeof(gnrc_nettype_t);
}

Expand Down

0 comments on commit 27cdacc

Please sign in to comment.