提交 f5ee422c 编写于 作者: C Cole Robinson

tests: Initialize virRandom in for test suite.

Otherwise any virRandom calls will result in a segfault.
上级 cf577653
......@@ -340,7 +340,8 @@ int virtTestMain(int argc,
#endif
if (virThreadInitialize() < 0 ||
virErrorInitialize() < 0)
virErrorInitialize() < 0 ||
virRandomInitialize(time(NULL) ^ getpid()))
return 1;
if ((debugStr = getenv("VIR_TEST_DEBUG")) != NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册