From 20783bbcfdfb4ce07d46db7ac3f0b4cd24dde950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 2 Apr 2019 16:07:01 +0200 Subject: [PATCH] virjsontest: reword error messages in testJSONFromString MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ján Tomko --- tests/virjsontest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/virjsontest.c b/tests/virjsontest.c index 8481460e92..39ee30e6b5 100644 --- a/tests/virjsontest.c +++ b/tests/virjsontest.c @@ -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; } }