char *actual;
g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew();
- virCommandSetDryRun(dryRunToken, &buf, false, true, testCommandDryRun, NULL);
+ virCommandSetDryRun(dryRunToken, &buf, true, true, testCommandDryRun, NULL);
if (!(def = virNetworkDefParseFile(xml, NULL)))
goto cleanup;
if (STRPREFIX(actual, baseargs))
actual += strlen(baseargs);
- if (virTestCompareToFile(actual, cmdline) < 0)
+ if (virTestCompareToFileFull(actual, cmdline, false) < 0)
goto cleanup;
ret = 0;
basefile = g_strdup_printf("%s/networkxml2firewalldata/base.args", abs_srcdir);
- if (virTestLoadFile(basefile, &baseargs) < 0)
+ if (virFileReadAll(basefile, INT_MAX, &baseargs) < 0)
return EXIT_FAILURE;
DO_TEST("nat-default");