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>
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 { \