summaryrefslogtreecommitdiff
path: root/tests/qemucommandutiltest.c
diff options
context:
space:
mode:
authorJán Tomko <jtomko@redhat.com>2018-07-03 16:46:04 +0200
committerJán Tomko <jtomko@redhat.com>2018-07-18 17:54:18 +0200
commit4dd60540007042bfc0087a67f57f3e9f3311a84a (patch)
tree47872c85b7fabe65c466fc51acd46a941f550ede /tests/qemucommandutiltest.c
parent01ce04375c3348fd683475e5aa5231149ef6a78a (diff)
downloadlibvirt-4dd60540007042bfc0087a67f57f3e9f3311a84a.tar.gz
m4: Introduce STABLE_ORDERING_JANSSON
Add a second check for Jansson >= 2.8, which includes fixes to preserve ordering of object keys. Use this constant to guard tests that depend on stable ordering. Signed-off-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'tests/qemucommandutiltest.c')
-rw-r--r--tests/qemucommandutiltest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qemucommandutiltest.c b/tests/qemucommandutiltest.c
index 8e57a1b79d..9b13dde63f 100644
--- a/tests/qemucommandutiltest.c
+++ b/tests/qemucommandutiltest.c
@@ -76,6 +76,11 @@ mymain(void)
int ret = 0;
testQemuCommandBuildObjectFromJSONData data1;
+#if !WITH_STABLE_ORDERING_JANSSON
+ fputs("libvirt not compiled with recent enough Jansson, skipping this test\n", stderr);
+ return EXIT_AM_SKIP;
+#endif
+
#if !WITH_JANSSON
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
return EXIT_AM_SKIP;