ARMmbed / wifi-ism43362

ISM43362 WiFi driver
17 stars 22 forks source link

mbed-os DNS test failure #28

Closed jeromecoutant closed 5 years ago

jeromecoutant commented 6 years ago

Hi

Command:

mbed test -t ARM -m DISCO_L475VG_IOT01A -v -n tests*dns

Result:

target platform_name test suite test case passed failed result elapsed_time (sec)
DISCO_L475VG_IOT01A-ARM DISCO_L475VG_IOT01A tests-netsocket-dns SYNCHRONOUS_DNS_INVALID 0 1 FAIL 10.25

Pre-analsysis:

Failure comes in do_gethostbyname function in TESTS/netsocket/dns/main.cpp :

    nsapi_error_t err = net->gethostbyname(hosts[i], &address);
    TEST_ASSERT(err == NSAPI_ERROR_OK || err == NSAPI_ERROR_NO_MEMORY || err == NSAPI_ERROR_DNS_FAILURE || err == NSAPI_ERROR_TIMEOUT);

Returned error is : NSAPI_ERROR_DEVICE_ERROR = -3012

jeromecoutant commented 5 years ago

Fixed by https://github.com/ARMmbed/wifi-ism43362/pull/34