From 1631d2961a56fa1066da2a4966922a86291323d0 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Thu, 15 Nov 2018 14:11:16 +0100 Subject: [PATCH] tests/unittests: use thread_has_queue() for msg queue check --- tests/gnrc_netif/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gnrc_netif/main.c b/tests/gnrc_netif/main.c index 4a0d3b0d3fb49..9b3f617651fc3 100644 --- a/tests/gnrc_netif/main.c +++ b/tests/gnrc_netif/main.c @@ -131,7 +131,7 @@ static void test_creation(void) #ifdef DEVELHELP TEST_ASSERT_EQUAL_STRING("eth", sched_threads[ethernet_netif->pid]->name); #endif - TEST_ASSERT_NOT_NULL(sched_threads[ethernet_netif->pid]->msg_array); + TEST_ASSERT(thread_has_queue(sched_threads[ethernet_netif->pid])); TEST_ASSERT_NOT_NULL((ieee802154_netif = gnrc_netif_ieee802154_create( ieee802154_netif_stack, IEEE802154_STACKSIZE, GNRC_NETIF_PRIO, @@ -153,7 +153,7 @@ static void test_creation(void) #ifdef DEVELHELP TEST_ASSERT_EQUAL_STRING("wpan", sched_threads[ieee802154_netif->pid]->name); #endif - TEST_ASSERT_NOT_NULL(sched_threads[ieee802154_netif->pid]->msg_array); + TEST_ASSERT(thread_has_queue(sched_threads[ieee802154_netif->pid])); for (unsigned i = 0; i < DEFAULT_DEVS_NUMOF; i++) { TEST_ASSERT_NOT_NULL((netifs[i] = gnrc_netif_create( @@ -165,7 +165,7 @@ static void test_creation(void) TEST_ASSERT_EQUAL_INT(GNRC_NETIF_DEFAULT_HL, netifs[i]->cur_hl); TEST_ASSERT_EQUAL_INT(NETDEV_TYPE_UNKNOWN, netifs[i]->device_type); TEST_ASSERT(netifs[i]->pid > KERNEL_PID_UNDEF); - TEST_ASSERT_NOT_NULL(sched_threads[netifs[i]->pid]->msg_array); + TEST_ASSERT(thread_has_queue(sched_threads[netifs[i]->pid])); TEST_ASSERT_EQUAL_INT(i + SPECIAL_DEVS + 1, gnrc_netif_numof()); for (unsigned j = 0; j < (i + SPECIAL_DEVS + 1); j++) { TEST_ASSERT_NOT_NULL((ptr = gnrc_netif_iter(ptr)));