From: Cole Robinson Date: Wed, 21 Jun 2017 12:55:58 +0000 (-0400) Subject: tests: virstoragetest: fix --without-yajl X-Git-Tag: v3.5.0-rc1~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a129b75e2149d46724d95fd7c717f90f309ee89;p=thirdparty%2Flibvirt.git tests: virstoragetest: fix --without-yajl Recently added JSON tests should be skipped if compiled --without-yajl https://bugzilla.redhat.com/show_bug.cgi?id=1463435 --- diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c index 6c12873809..f34408395b 100644 --- a/tests/virstoragetest.c +++ b/tests/virstoragetest.c @@ -1359,6 +1359,8 @@ mymain(void) "\n" " \n" "\n"); + +#ifdef WITH_YAJL TEST_BACKING_PARSE("json:", NULL); TEST_BACKING_PARSE("json:asdgsdfg", NULL); TEST_BACKING_PARSE("json:{}", NULL); @@ -1573,6 +1575,7 @@ mymain(void) "\n" " \n" "\n"); +#endif /* WITH_YAJL */ cleanup: /* Final cleanup */