mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
testJSONFromString: regroup if blocks
Handle failure to parse the JSON in an else branch for readability. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ee3e23a790
commit
eb918b9033
@ -36,12 +36,12 @@ testJSONFromString(const void *data)
|
||||
ret = 0;
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if (!info->pass) {
|
||||
VIR_TEST_VERBOSE("Should not have parsed %s\n", info->doc);
|
||||
VIR_TEST_VERBOSE("Should not have parsed %s\n", info->name);
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
VIR_TEST_DEBUG("Parsed %s\n", info->doc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user