From 3b9a259fde1ba1b964092c39ec3b6931c07f1de0 Mon Sep 17 00:00:00 2001 From: Hein Tibosch Date: Wed, 27 Sep 2023 13:23:54 +0800 Subject: [PATCH] ut: Repaired GetIPType loopback test --- test/unit-test/FreeRTOS_Routing/FreeRTOS_Routing_utest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit-test/FreeRTOS_Routing/FreeRTOS_Routing_utest.c b/test/unit-test/FreeRTOS_Routing/FreeRTOS_Routing_utest.c index 06b12f4b0..f843d3324 100644 --- a/test/unit-test/FreeRTOS_Routing/FreeRTOS_Routing_utest.c +++ b/test/unit-test/FreeRTOS_Routing/FreeRTOS_Routing_utest.c @@ -2620,6 +2620,8 @@ void test_xIPv6_GetIPType_Loopback() const IPv6_Address_t xIPv6Address = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01 }; IPv6_Type_t xReturn; + xIsIPv6Loopback_ExpectAndReturn( &xIPv6Address, pdTRUE ); + xReturn = xIPv6_GetIPType( &xIPv6Address ); TEST_ASSERT_EQUAL( eIPv6_Loopback, xReturn ); }