Subject: [PATCH] tests: Disable networkxml2argvtest when configured without network

From: Matthias Bolte <[email-masked]>
Date: Tue, 5 Jul 2011 12:42:44 +0200

Reported by Ruben Kerkhof.
---
 tests/Makefile.am |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 30b2d95..7f5bdc9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -373,10 +373,14 @@ networkxml2xmltest_SOURCES = \
 	testutils.c testutils.h
 networkxml2xmltest_LDADD = $(LDADDS)
 
+if WITH_NETWORK
 networkxml2argvtest_SOURCES = \
 	networkxml2argvtest.c \
 	testutils.c testutils.h
 networkxml2argvtest_LDADD = ../src/libvirt_driver_network.la $(LDADDS)
+else
+EXTRA_DIST += networkxml2argvtest.c
+endif
 
 nwfilterxml2xmltest_SOURCES = \
 	nwfilterxml2xmltest.c \
-- 
1.7.4.1