[libvirt] [PATCHv2 11/14] virjsontest: prettify AddRemove test

Ján Tomko jtomko at redhat.com
Tue Apr 2 15:41:50 UTC 2019


Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 tests/virjsondata/add-remove-success-out.json | 4 ++--
 tests/virjsontest.c                           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/virjsondata/add-remove-success-out.json b/tests/virjsondata/add-remove-success-out.json
index 50f1770910..24ccb3e38c 100644
--- a/tests/virjsondata/add-remove-success-out.json
+++ b/tests/virjsondata/add-remove-success-out.json
@@ -1,4 +1,4 @@
 {
-    "value": true,
-    "newname": "foo"
+  "value": true,
+  "newname": "foo"
 }
diff --git a/tests/virjsontest.c b/tests/virjsontest.c
index 4241acd911..4a33aff785 100644
--- a/tests/virjsontest.c
+++ b/tests/virjsontest.c
@@ -162,7 +162,7 @@ testJSONAddRemove(const void *data)
         VIR_TEST_VERBOSE("%s", "unexpected failure adding new key\n");
         return -1;
     }
-    if (!(actual = virJSONValueToString(json, false))) {
+    if (!(actual = virJSONValueToString(json, true))) {
         VIR_TEST_VERBOSE("%s", "failed to stringize result\n");
         return -1;
     }
-- 
2.19.2




More information about the libvir-list mailing list