mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Initialize virRandom in for test suite.
Otherwise any virRandom calls will result in a segfault.
This commit is contained in:
@@ -340,7 +340,8 @@ int virtTestMain(int argc,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (virThreadInitialize() < 0 ||
|
if (virThreadInitialize() < 0 ||
|
||||||
virErrorInitialize() < 0)
|
virErrorInitialize() < 0 ||
|
||||||
|
virRandomInitialize(time(NULL) ^ getpid()))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if ((debugStr = getenv("VIR_TEST_DEBUG")) != NULL) {
|
if ((debugStr = getenv("VIR_TEST_DEBUG")) != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user