Branch: refs/heads/master
Home:
https://github.com/ClusterLabs/libqb
Commit: d69cc7b3f6fbe595af51977894d41e0980518b62
https://github.com/ClusterLabs/libqb/commit/d69cc7b3f6fbe595af51977894d41...
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: 2017-04-28 (Fri, 28 Apr 2017)
Changed paths:
M tests/check_ipc.c
Log Message:
-----------
test: Fix random number generation in IPC tests
The sockets are named using a random() suffix in at attempt to isolate
concurrent test. However random() always returns the same random number
by design ... unless pre-seeded with some value being unique enough for
the particular execution.
Borrowing the most of the above message from original "srandom" fix by
Chrissie who also discovered this issue (nice!), I thought it would be
more viable if we encoded such "unique enough" variables directly to
IPC name being generated, not relying on pseudorandom generators in any
way. Hence this other fix.
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
Commit: 63d79c93cc579fbb417fd7a4d092c1cf6f9bf268
https://github.com/ClusterLabs/libqb/commit/63d79c93cc579fbb417fd7a4d092c...
Author: Chrissie Caulfield <ccaulfie(a)redhat.com>
Date: 2017-04-28 (Fri, 28 Apr 2017)
Changed paths:
M tests/check_ipc.c
Log Message:
-----------
Merge pull request #250 from jnpkrn/test-ipc-random-name
test: Fix random number generation in IPC tests
Compare:
https://github.com/ClusterLabs/libqb/compare/f38a8778898f...63d79c93cc57