mirror of https://github.com/ARMmbed/mbed-os.git
Fix netsocket DNS test for IAR
Test case printed IP address. If ip address is null, IAR compiled binary fails. Added check for printing null. If IP address is null, then it prints string 'null'.pull/11199/head
parent
9bf85ef67e
commit
ce36104ab3
|
@ -160,7 +160,7 @@ static void net_bringup()
|
|||
net = NetworkInterface::get_default_instance();
|
||||
nsapi_error_t err = net->connect();
|
||||
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, err);
|
||||
printf("MBED: IP address is '%s'\n", net->get_ip_address());
|
||||
printf("MBED: IP address is '%s'\n", net->get_ip_address() ? net->get_ip_address() : "null");
|
||||
}
|
||||
|
||||
static void net_bringdown()
|
||||
|
|
Loading…
Reference in New Issue