Merge lp:~stewart/galera/bug907623 into lp:galera/2.x
Status: | Merged |
---|---|
Approved by: | Alex Yurchenko |
Approved revision: | 109 |
Merge reported by: | Alex Yurchenko |
Merged at revision: | not available |
Proposed branch: | lp:~stewart/galera/bug907623 |
Merge into: | lp:galera/2.x |
Diff against target: |
187 lines (+50/-15) 3 files modified
galerautils/src/gu_network.cpp (+14/-1) galerautils/tests/gu_net_test.cpp (+34/-13) gcomm/test/check_util.cpp (+2/-1) |
To merge this branch: | bzr merge lp:~stewart/galera/bug907623 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Yurchenko | Approve | ||
Review via email: mp+87434@code.launchpad.net |
Description of the change
This branch enables the test suite to be run multiple times concurrently on the same machine.
Prior to this branch being merged, if you simply built Galera by using "scons" or build script in two completely different directories on the same machine, you could get test failures due to the test suite trying to open the same TCP port.
This branch changes the test suite to instead of having hard coded port numbers, to use Operating System assigned ones. This means you can have as many concurrent builds on a single machine as you have free TCP ports.
You get an OS assigned port number simply by binding to port 0 instead of 10001 or some such number. You then just ask the OS for what port number it gave you.
The changes are pretty minor to get there, and it *really* helps when you're running Continuous Integration.
gu::Network is deprecated in favour of asio and should be removed from the code.