Skip to content

Commit d927d9d

Browse files
committed
fixup! tests/gnrc_sock_ip: Added test for sock_aux_local
1 parent c1240ca commit d927d9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/gnrc_sock_ip/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,11 @@ static void test_sock_ip_recv__aux(void)
362362
expect(AF_INET6 == result.family);
363363
expect(memcmp(&result.addr, &src_addr, sizeof(result.addr)) == 0);
364364
expect(_TEST_NETIF == result.netif);
365-
#ifdef MODULE_SOCK_AUX_LOCAL
365+
#if IS_USED(MODULE_SOCK_AUX_LOCAL)
366366
expect(!(aux.flags & SOCK_AUX_GET_LOCAL));
367367
expect(memcmp(&aux.local.addr, &dst_addr, sizeof(dst_addr)) == 0);
368+
#else
369+
expect(aux.flags & SOCK_AUX_GET_LOCAL);
368370
#endif
369371
expect(_check_net());
370372
}

0 commit comments

Comments
 (0)