• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ARMmbed / mbed-os / 15140 / 2
35%
master: 57%

Build:
Build:
LAST BUILD BRANCH: test-resources
DEFAULT BRANCH: master
Ran 09 Feb 2018 02:54PM UTC
Files 481
Run time 17s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Feb 2018 02:39PM UTC coverage: 33.602% (+0.1%) from 33.463%
NAME=tools

push

travis-ci

adbridge
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.

25583 of 76136 relevant lines covered (33.6%)

0.34 hits per line

Source Files on job 15140.2 (NAME=tools)
  • Tree
  • List 0
  • Changed 25
  • Source Changed 21
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15140
  • Travis Job 15140.2
  • b812918f on github
  • Prev Job for NAME=tools on release-candidate (#14808.2)
  • Next Job for NAME=tools on release-candidate (#15156.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc