mirror of https://gitee.com/openkylin/libvirt.git
tests: do not ignore virInitialize failure
* tests/nodeinfotest.c (mymain): Do not ignore virInitialize failure. Most other callers of virInitialize test for failure.
This commit is contained in:
parent
cff218f353
commit
6ab131bae2
|
@ -106,7 +106,8 @@ mymain(int argc, char **argv)
|
|||
return(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
virInitialize();
|
||||
if (virInitialize() < 0)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
for (i = 0 ; i < ARRAY_CARDINALITY(nodeData); i++)
|
||||
if (virtTestRun(nodeData[i], 1, linuxTestNodeInfo, nodeData[i]) != 0)
|
||||
|
|
Loading…
Reference in New Issue