]> xenbits.xensource.com Git - libvirt.git/commitdiff
virjsontest: reword error messages in testJSONFromString
authorJán Tomko <jtomko@redhat.com>
Tue, 2 Apr 2019 14:07:01 +0000 (16:07 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 3 Apr 2019 12:41:07 +0000 (14:41 +0200)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
tests/virjsontest.c

index 8481460e92a476318e59a11ddc6c4e790ea0ded0..39ee30e6b5b9186ea4d6c354495a9b320285837f 100644 (file)
@@ -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;
         }
     }