mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11895 from AriParkkila/cell-ignore-linklocal
TESTS: Allow ipv6_link_local_address() as unsupportedpull/11915/head
commit
e638486be1
|
@ -158,11 +158,13 @@ void NETWORKINTERFACE_STATUS_GET()
|
|||
|
||||
#if MBED_CONF_LWIP_IPV6_ENABLED
|
||||
/* if IPv6 is enabled, validate ipv6_link_local_address API*/
|
||||
SocketAddress ipv6_link_local_address = NULL;
|
||||
SocketAddress ipv6_link_local_address(NULL);
|
||||
err = net->get_ipv6_link_local_address(&ipv6_link_local_address);
|
||||
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, err);
|
||||
TEST_ASSERT_NOT_NULL(ipv6_link_local_address.get_ip_address());
|
||||
TEST_ASSERT_EQUAL(NSAPI_IPv6, ipv6_link_local_address.get_ip_version());
|
||||
if (err != NSAPI_ERROR_UNSUPPORTED) {
|
||||
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, err);
|
||||
TEST_ASSERT_NOT_NULL(ipv6_link_local_address.get_ip_address());
|
||||
TEST_ASSERT_EQUAL(NSAPI_IPv6, ipv6_link_local_address.get_ip_version());
|
||||
}
|
||||
#endif
|
||||
|
||||
err = net->disconnect();
|
||||
|
|
Loading…
Reference in New Issue