mirror of https://github.com/ARMmbed/mbed-os.git
Fixing bad asserts
parent
f616bf28f6
commit
94b4160347
|
@ -58,11 +58,6 @@ void test_udp_echo() {
|
|||
int err = eth.connect();
|
||||
TEST_ASSERT_EQUAL(0, err);
|
||||
|
||||
if (err) {
|
||||
printf("MBED: failed to connect with an error of %d\r\n", err);
|
||||
TEST_ASSERT_EQUAL(0, err);
|
||||
}
|
||||
|
||||
printf("UDP client IP Address is %s\n", eth.get_ip_address());
|
||||
|
||||
greentea_send_kv("target_ip", eth.get_ip_address());
|
||||
|
|
|
@ -152,7 +152,7 @@ public:
|
|||
result = success == ECHO_LOOPS;
|
||||
|
||||
err = sock.close();
|
||||
TEST_ASSERT_EQUAL(0, err);
|
||||
printf("[ID:%01u][%02u] Failed to close socket!\n", id, i);
|
||||
if (err) {
|
||||
result = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue