[PATCHv2 11/14] virjsontest: prettify AddRemove test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux