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

ARMmbed / mbed-os / 15141
34%
master: 57%

Build:
Build:
LAST BUILD BRANCH: test-resources
DEFAULT BRANCH: master
Ran 09 Feb 2018 03:16PM UTC
Jobs 1
Files 481
Run time 22s
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

pending completion
15141

Pull #6057

travis-ci

web-flow
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.
Pull Request #6057: Release candidate for mbed-os-5.7.5

198 of 198 new or added lines in 13 files covered. (100.0%)

25583 of 76136 relevant lines covered (33.6%)

0.34 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
tools/export/e2studio/__init__.py
2
100.0
tools/export/gnuarmeclipse/__init__.py
2
100.0
tools/export/makefile/__init__.py
3
100.0
tools/export/nb/__init__.py
4
100.0
tools/export/uvision/__init__.py
5
100.0
tools/export/vscode/__init__.py
5
100.0
tools/toolchains/arm.py
6
100.0
tools/build_api.py
12
100.0
tools/arm_pack_manager/__init__.py
14
100.0
tools/config/__init__.py
14
100.0
tools/toolchains/__init__.py
38
100.0
tools/memap.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
tools/export/e2studio/__init__.py
1
100.0
tools/toolchains/gcc.py
2
100.0
tools/arm_pack_manager/__init__.py
2
100.0
tools/build_api.py
2
100.0
tools/toolchains/arm.py
4
100.0
tools/config/__init__.py
113
100.0
/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/hypothesis/core.py
244
100.0
/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/hypothesis/internal/conjecture/engine.py
Jobs
ID Job ID Ran Files Coverage
2 15141.2 (NAME=tools) 09 Feb 2018 03:16PM UTC 0
33.6
Travis Job 15141.2
Source Files on build 15141
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #15141
  • Pull Request #6057
  • PR Base - mbed-os-5.7 (#14855)
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