mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 02:04:16 +03:00
tests: Fix false positive in testConfRoundTrip
testConfRoundTrip would return 0 (success) if virConfWriteMem succeeded and virTestCompareToFile failed. Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
60719bedbc
commit
4b53ce9fa7
@ -51,8 +51,7 @@ static int testConfRoundTrip(const void *opaque)
|
||||
fprintf(stderr, "Failed to process %s\n", srcfile);
|
||||
goto cleanup;
|
||||
}
|
||||
ret = virConfWriteMem(buffer, &len, conf);
|
||||
if (ret < 0) {
|
||||
if (virConfWriteMem(buffer, &len, conf) < 0) {
|
||||
fprintf(stderr, "Failed to serialize %s back\n", srcfile);
|
||||
goto cleanup;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user