File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -158,11 +158,13 @@ void NETWORKINTERFACE_STATUS_GET()
158158
159159#if MBED_CONF_LWIP_IPV6_ENABLED
160160 /* if IPv6 is enabled, validate ipv6_link_local_address API*/
161- SocketAddress ipv6_link_local_address = NULL ;
161+ SocketAddress ipv6_link_local_address ( NULL ) ;
162162 err = net->get_ipv6_link_local_address (&ipv6_link_local_address);
163- TEST_ASSERT_EQUAL (NSAPI_ERROR_OK, err);
164- TEST_ASSERT_NOT_NULL (ipv6_link_local_address.get_ip_address ());
165- TEST_ASSERT_EQUAL (NSAPI_IPv6, ipv6_link_local_address.get_ip_version ());
163+ if (err != NSAPI_ERROR_UNSUPPORTED) {
164+ TEST_ASSERT_EQUAL (NSAPI_ERROR_OK, err);
165+ TEST_ASSERT_NOT_NULL (ipv6_link_local_address.get_ip_address ());
166+ TEST_ASSERT_EQUAL (NSAPI_IPv6, ipv6_link_local_address.get_ip_version ());
167+ }
166168#endif
167169
168170 err = net->disconnect ();
You can’t perform that action at this time.
0 commit comments