提交 20783bbc 编写于 作者: J Ján Tomko

virjsontest: reword error messages in testJSONFromString

Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 eb918b90
......@@ -29,16 +29,16 @@ testJSONFromString(const void *data)
if (!json) {
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;
} 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;
goto cleanup;
}
} else {
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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册