mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 04:25:19 +00:00
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);
|
return(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
virInitialize();
|
if (virInitialize() < 0)
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
for (i = 0 ; i < ARRAY_CARDINALITY(nodeData); i++)
|
for (i = 0 ; i < ARRAY_CARDINALITY(nodeData); i++)
|
||||||
if (virtTestRun(nodeData[i], 1, linuxTestNodeInfo, nodeData[i]) != 0)
|
if (virtTestRun(nodeData[i], 1, linuxTestNodeInfo, nodeData[i]) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user