[libvirt] [PATCH] tests: Run virnetdaemontest iff WITH_YAJL

Martin Kletzander mkletzan at redhat.com
Tue Dec 1 13:15:12 UTC 2015


On Tue, Dec 01, 2015 at 01:53:56PM +0100, Michal Privoznik wrote:
>The test itself and daemon require a JSON parsing library. If not
>present, skip the test.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> tests/virnetdaemontest.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

ACK

>diff --git a/tests/virnetdaemontest.c b/tests/virnetdaemontest.c
>index 24cbd54..e5d09a3 100644
>--- a/tests/virnetdaemontest.c
>+++ b/tests/virnetdaemontest.c
>@@ -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)
> {
>--
>2.4.10
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20151201/e623053f/attachment-0001.sig>


More information about the libvir-list mailing list