@@ -148,7 +148,7 @@ static void test_creation(void)
148148#ifdef DEVELHELP
149149 TEST_ASSERT_EQUAL_STRING ("eth" , sched_threads [ethernet_netif .pid ]-> name );
150150#endif
151- TEST_ASSERT (thread_has_msg_queue ( sched_threads [ ethernet_netif .pid ]) );
151+ TEST_ASSERT (msg_queue_capacity ( ethernet_netif .pid ) > 0 );
152152
153153 TEST_ASSERT_EQUAL_INT ((gnrc_netif_ieee802154_create (& ieee802154_netif ,
154154 ieee802154_netif_stack , IEEE802154_STACKSIZE , GNRC_NETIF_PRIO ,
@@ -170,7 +170,7 @@ static void test_creation(void)
170170#ifdef DEVELHELP
171171 TEST_ASSERT_EQUAL_STRING ("wpan" , sched_threads [ieee802154_netif .pid ]-> name );
172172#endif
173- TEST_ASSERT (thread_has_msg_queue ( sched_threads [ ieee802154_netif .pid ]) );
173+ TEST_ASSERT (msg_queue_capacity ( ieee802154_netif .pid ) > 0 );
174174
175175 for (unsigned i = 0 ; i < DEFAULT_DEVS_NUMOF ; i ++ ) {
176176 TEST_ASSERT_EQUAL_INT ((gnrc_netif_create (& netifs [i ],
@@ -182,7 +182,7 @@ static void test_creation(void)
182182 TEST_ASSERT_EQUAL_INT (CONFIG_GNRC_NETIF_DEFAULT_HL , netifs [i ].cur_hl );
183183 TEST_ASSERT_EQUAL_INT (NETDEV_TYPE_TEST , netifs [i ].device_type );
184184 TEST_ASSERT (netifs [i ].pid > KERNEL_PID_UNDEF );
185- TEST_ASSERT (thread_has_msg_queue ( sched_threads [ netifs [i ].pid ]) );
185+ TEST_ASSERT (msg_queue_capacity ( netifs [i ].pid ) > 0 );
186186 TEST_ASSERT_EQUAL_INT (i + SPECIAL_DEVS + 1 , gnrc_netif_numof ());
187187 for (unsigned j = 0 ; j < (i + SPECIAL_DEVS + 1 ); j ++ ) {
188188 TEST_ASSERT_NOT_NULL ((ptr = gnrc_netif_iter (ptr )));
0 commit comments