]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: virstoragetest: fix --without-yajl
authorCole Robinson <crobinso@redhat.com>
Wed, 21 Jun 2017 12:55:58 +0000 (08:55 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 21 Jun 2017 16:12:26 +0000 (12:12 -0400)
Recently added JSON tests should be skipped if compiled --without-yajl

https://bugzilla.redhat.com/show_bug.cgi?id=1463435

tests/virstoragetest.c

index 6c1287380908c73cb36205f3055f195cc7ded706..f34408395b4a0f3f4f15276ef2c6fd2f0c337b10 100644 (file)
@@ -1359,6 +1359,8 @@ mymain(void)
                        "<source protocol='nbd' name='blah'>\n"
                        "  <host name='example.org' port='6000'/>\n"
                        "</source>\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)
                        "<source protocol='sheepdog' name='test'>\n"
                        "  <host name='example.com' port='321'/>\n"
                        "</source>\n");
+#endif /* WITH_YAJL */
 
  cleanup:
     /* Final cleanup */