]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
tests: Run virnetdaemontest iff WITH_YAJL
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Dec 2015 10:54:08 +0000 (11:54 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Dec 2015 13:03:30 +0000 (14:03 +0100)
The test itself and daemon require a JSON parsing library. If not
present, skip the test.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/virnetdaemontest.c

index 24cbd54531a2d4dbb369d7acffb15ceb00395a64..e5d09a3ebc8a489886f6e36caf7d24b26d01e0a8 100644 (file)
@@ -26,7 +26,7 @@
 
 #define VIR_FROM_THIS VIR_FROM_RPC
 
-#ifdef HAVE_SOCKETPAIR
+#if defined(HAVE_SOCKETPAIR) && defined(WITH_YAJL)
 static virNetServerPtr
 testCreateServer(const char *host, int family)
 {