mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
networkxml2conftest: Check if capabilities were created successfully
Now that looking up dnsmasq is handled/mocked we can start checking whether dnsmasq capabilities were built successfully and error out if that wasn't the case. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
ec9ee676b4
commit
2fc6adcb30
@ -147,7 +147,11 @@ mymain(void)
|
||||
int ret = 0;
|
||||
g_autoptr(dnsmasqCaps) full = NULL;
|
||||
|
||||
full = buildCaps();
|
||||
if (!(full = buildCaps())) {
|
||||
fprintf(stderr, "failed to create the fake capabilities: %s",
|
||||
virGetLastErrorMessage());
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
#define DO_TEST(xname, xcaps) \
|
||||
do { \
|
||||
|
Loading…
Reference in New Issue
Block a user