diff --git a/tests/networkxml2conftest.c b/tests/networkxml2conftest.c index 718a031879..0bc9e128e3 100644 --- a/tests/networkxml2conftest.c +++ b/tests/networkxml2conftest.c @@ -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 { \