mbed-os/TESTS
Wolfgang Betz 8ec9f6b430 Correct test `socket_sigio`
A call to

    `TCPSocket::recv(void *data, nsapi_size_t size)`

returns, following the mbed documentation, the number of received bytes on
success, and a negative error code on failure.

So in case of success, the return value depends on both the value of parameter
`size` but also on the amount of data already available. This means, that the
value returned can be lower than or equal to the `size` of the `data` buffer
passed as argument to the call.

Therefore, in the cases of `test_tcp_hello_world()` & `find_substring()`
(i.e. test `socket_sigio`), the calls to `TCPSocket::recv()` might return from
one byte up to `sizeof(buffer) - 1` (i.e. 511) bytes for each single call,
while the tests expect to receive the whole response string with a single call.

This commit applies a fix to this situation by implementing a receive loop
which exits once there is no data anymore available to be read from the socket.
2018-02-02 10:29:46 +01:00
..
events event queue test: fix out of memory problem for NUCLEO_F070RB 2017-11-03 14:47:20 +01:00
host_tests RTC time conversion test - reduce number of tested years in order to reduce test execution time. 2018-01-08 10:14:54 +01:00
integration/basic Added copyright header to all tests 2017-08-07 12:02:33 -05:00
mbed_drivers Add RTC time test. 2018-01-24 10:47:34 +01:00
mbed_functional Added copyright header to all tests 2017-08-07 12:02:33 -05:00
mbed_hal Add tests for critical section HAL API 2018-01-24 10:14:06 +01:00
mbed_platform Test set for critical section 2018-01-19 08:28:20 +01:00
mbedmicro-mbed Added copyright header to all tests 2017-08-07 12:02:33 -05:00
mbedmicro-rtos-mbed Change the "thread" test main for Cortex-A 2017-12-21 14:09:24 +09:00
mbedtls Add test of sha256_clone function 2017-06-16 10:47:45 +02:00
netsocket Correct test `socket_sigio` 2018-02-02 10:29:46 +01:00
network Merge pull request #5435 from mikaleppanen/emac_tests 2018-01-04 09:48:45 -06:00
storage_abstraction Ignore deprecated storage test 2017-06-02 23:50:39 -05:00