Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit test valgrind hangs #700

Merged
merged 6 commits into from Jul 31, 2015
Merged

Fix unit test valgrind hangs #700

merged 6 commits into from Jul 31, 2015

Conversation

jdonald
Copy link
Contributor

@jdonald jdonald commented Jul 31, 2015

Three unit tests were consistently hanging under valgrind, making it impractical to do sanity-checks with valgrind ./AutowiringTest. Until now I had to run select tests or use --gtest_filter with a negative pattern.

How this fixes it: There seems to be no guarantee that a spin-loop thread will ever yield. Adding these WaitForEvent() calls ensure that bolt/transmitter/receiver actually gets a chance to run.

@codemercenary codemercenary added this to the v0.7.2 milestone Jul 31, 2015
@codemercenary codemercenary self-assigned this Jul 31, 2015
codemercenary added a commit that referenced this pull request Jul 31, 2015
@codemercenary codemercenary merged commit d517d63 into develop Jul 31, 2015
@codemercenary codemercenary deleted the fix-valgrind branch July 31, 2015 05:08
jdonald added a commit that referenced this pull request Oct 5, 2015
This reverts commit d517d63, reversing
changes made to 7871694.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants