mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
virjsontest: reword error messages in testJSONFromString
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
eb918b9033
commit
20783bbcfd
@ -29,16 +29,16 @@ testJSONFromString(const void *data)
|
|||||||
|
|
||||||
if (!json) {
|
if (!json) {
|
||||||
if (info->pass) {
|
if (info->pass) {
|
||||||
VIR_TEST_VERBOSE("Fail to parse %s\n", info->doc);
|
VIR_TEST_VERBOSE("Failed to parse %s\n", info->doc);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else {
|
} else {
|
||||||
VIR_TEST_DEBUG("Fail to parse %s\n", info->doc);
|
VIR_TEST_DEBUG("As expected, failed to parse %s\n", info->doc);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!info->pass) {
|
if (!info->pass) {
|
||||||
VIR_TEST_VERBOSE("Should not have parsed %s\n", info->name);
|
VIR_TEST_VERBOSE("Unexpected success while parsing %s\n", info->doc);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user