Merge lp:~alan-griffiths/mir/fix-1388802-possibly into lp:mir
Proposed by
Alan Griffiths
Status: | Merged |
---|---|
Approved by: | Alan Griffiths |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2040 |
Proposed branch: | lp:~alan-griffiths/mir/fix-1388802-possibly |
Merge into: | lp:mir |
Diff against target: |
132 lines (+33/-3) 1 file modified
tests/acceptance-tests/test_client_input.cpp (+33/-3) |
To merge this branch: | bzr merge lp:~alan-griffiths/mir/fix-1388802-possibly |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Chris Halse Rogers | Approve | ||
Alberto Aguirre (community) | Approve | ||
Review via email: mp+240926@code.launchpad.net |
Commit message
tests: Make TestClientInput less helgrind unfriendly
Description of the change
tests: Make TestClientInput less helgrind unfriendly
helgrind reports a number of errors around expectations - but many of these seem to be because the thread fulfilling the expectation is running before the expectation is set. There is sequencing (by only sending events from the server after setting expectations) but streaming data over a socket goes beyond the "memory model" and helgrind doesn't see it.
I've changed the tests to start the client thread after the expectations are set - which more than halves the size of the helgrind report.
To post a comment you must log in.
PASSED: Continuous integration, rev:2039 jenkins. qa.ubuntu. com/job/ mir-ci/ 2026/ jenkins. qa.ubuntu. com/job/ mir-android- vivid-i386- build/21 jenkins. qa.ubuntu. com/job/ mir-clang- vivid-amd64- build/21 jenkins. qa.ubuntu. com/job/ mir-vivid- amd64-ci/ 15 jenkins. qa.ubuntu. com/job/ mir-vivid- amd64-ci/ 15/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/mir- ci/2026/ rebuild
http://