mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Revert "m4: Introduce STABLE_ORDERING_JANSSON"
This reverts commit 4dd6054000
.
Jansson cannot parse QEMU's quirky JSON.
Revert back to yajl.
https://bugzilla.redhat.com/show_bug.cgi?id=1614569
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
8e373e6d80
commit
6f99de3148
@ -22,9 +22,6 @@ AC_DEFUN([LIBVIRT_ARG_JANSSON],[
|
|||||||
AC_DEFUN([LIBVIRT_CHECK_JANSSON],[
|
AC_DEFUN([LIBVIRT_CHECK_JANSSON],[
|
||||||
dnl Jansson http://www.digip.org/jansson/
|
dnl Jansson http://www.digip.org/jansson/
|
||||||
LIBVIRT_CHECK_PKG([JANSSON], [jansson], [2.5])
|
LIBVIRT_CHECK_PKG([JANSSON], [jansson], [2.5])
|
||||||
dnl Older versions of Jansson did not preserve the order of object keys
|
|
||||||
dnl use this check to guard the tests that are sensitive to this
|
|
||||||
LIBVIRT_CHECK_PKG([STABLE_ORDERING_JANSSON], [jansson], [2.8], [true])
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_RESULT_JANSSON],[
|
AC_DEFUN([LIBVIRT_RESULT_JANSSON],[
|
||||||
|
@ -337,11 +337,6 @@ mymain(void)
|
|||||||
char *capslatest_x86_64 = NULL;
|
char *capslatest_x86_64 = NULL;
|
||||||
virQEMUCapsPtr caps_x86_64 = NULL;
|
virQEMUCapsPtr caps_x86_64 = NULL;
|
||||||
|
|
||||||
#if !WITH_STABLE_ORDERING_JANSSON
|
|
||||||
fputs("libvirt not compiled with recent enough Jansson, skipping this test\n", stderr);
|
|
||||||
return EXIT_AM_SKIP;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (qemuTestDriverInit(&driver) < 0)
|
if (qemuTestDriverInit(&driver) < 0)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
|
@ -141,11 +141,6 @@ mymain(void)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
testQemuData data;
|
testQemuData data;
|
||||||
|
|
||||||
#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
|
#if !WITH_JANSSON
|
||||||
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
||||||
return EXIT_AM_SKIP;
|
return EXIT_AM_SKIP;
|
||||||
|
@ -76,11 +76,6 @@ mymain(void)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
testQemuCommandBuildObjectFromJSONData data1;
|
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
|
#if !WITH_JANSSON
|
||||||
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
||||||
return EXIT_AM_SKIP;
|
return EXIT_AM_SKIP;
|
||||||
|
@ -593,11 +593,6 @@ mymain(void)
|
|||||||
struct qemuHotplugTestData data = {0};
|
struct qemuHotplugTestData data = {0};
|
||||||
struct testQemuHotplugCpuParams cpudata;
|
struct testQemuHotplugCpuParams cpudata;
|
||||||
|
|
||||||
#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
|
#if !WITH_JANSSON
|
||||||
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
||||||
return EXIT_AM_SKIP;
|
return EXIT_AM_SKIP;
|
||||||
|
@ -203,11 +203,6 @@ mymain(void)
|
|||||||
virQEMUDriver driver;
|
virQEMUDriver driver;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
#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
|
#if !WITH_JANSSON
|
||||||
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
||||||
return EXIT_AM_SKIP;
|
return EXIT_AM_SKIP;
|
||||||
|
@ -2863,11 +2863,6 @@ mymain(void)
|
|||||||
virJSONValuePtr metaschema = NULL;
|
virJSONValuePtr metaschema = NULL;
|
||||||
char *metaschemastr = NULL;
|
char *metaschemastr = NULL;
|
||||||
|
|
||||||
#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
|
#if !WITH_JANSSON
|
||||||
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
fputs("libvirt not compiled with JSON support, skipping this test\n", stderr);
|
||||||
return EXIT_AM_SKIP;
|
return EXIT_AM_SKIP;
|
||||||
|
@ -479,11 +479,6 @@ mymain(void)
|
|||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
#if !WITH_STABLE_ORDERING_JANSSON
|
|
||||||
fputs("libvirt not compiled with recent enough Jansson, skipping this test\n", stderr);
|
|
||||||
return EXIT_AM_SKIP;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DO_TEST_FULL(name, cmd, doc, expect, pass) \
|
#define DO_TEST_FULL(name, cmd, doc, expect, pass) \
|
||||||
do { \
|
do { \
|
||||||
struct testInfo info = { doc, expect, pass }; \
|
struct testInfo info = { doc, expect, pass }; \
|
||||||
|
@ -157,11 +157,6 @@ mymain(void)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
virMacMapPtr mgr = NULL;
|
virMacMapPtr mgr = NULL;
|
||||||
|
|
||||||
#if !WITH_STABLE_ORDERING_JANSSON
|
|
||||||
fputs("libvirt not compiled with recent enough Jansson, skipping this test\n", stderr);
|
|
||||||
return EXIT_AM_SKIP;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DO_TEST_BASIC(f, d, ...) \
|
#define DO_TEST_BASIC(f, d, ...) \
|
||||||
do { \
|
do { \
|
||||||
const char * const m[] = {__VA_ARGS__, NULL }; \
|
const char * const m[] = {__VA_ARGS__, NULL }; \
|
||||||
|
@ -375,11 +375,6 @@ mymain(void)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
const char *server_names[] = { "testServer0", "testServer1" };
|
const char *server_names[] = { "testServer0", "testServer1" };
|
||||||
|
|
||||||
# if !WITH_STABLE_ORDERING_JANSSON
|
|
||||||
fputs("libvirt not compiled with recent enough Jansson, skipping this test\n", stderr);
|
|
||||||
return EXIT_AM_SKIP;
|
|
||||||
# endif
|
|
||||||
|
|
||||||
if (virInitialize() < 0 ||
|
if (virInitialize() < 0 ||
|
||||||
virEventRegisterDefaultImpl() < 0) {
|
virEventRegisterDefaultImpl() < 0) {
|
||||||
virDispatchError(NULL);
|
virDispatchError(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user