diff options
author | Daniel Veillard <veillard@redhat.com> | 2007-03-15 07:43:16 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2007-03-15 07:43:16 +0000 |
commit | 181ce1fdc64aa872ff9e2d15dc06c77e96a2098f (patch) | |
tree | 451c2730b7d5940bc044b4359f2dff4063b6807b /tests/sexpr2xmltest.c | |
parent | * src/xend_internal.c: applied patch from Kazuki Mizushima, an (diff) | |
download | libvirt-181ce1fdc64aa872ff9e2d15dc06c77e96a2098f.tar.gz libvirt-181ce1fdc64aa872ff9e2d15dc06c77e96a2098f.tar.bz2 libvirt-181ce1fdc64aa872ff9e2d15dc06c77e96a2098f.zip |
* configure.in proxy/Makefile.am proxy/libvirt_proxy.c
src/Makefile.am src/libvirt.c src/qemu_internal.c src/test.c
src/xen_internal.c src/xen_internal.h src/xend_internal.c
src/xm_internal.c src/xml.c src/xs_internal.c
tests/Makefile.am tests/sexpr2xmltest.c tests/xmconfigtest.c:
allow selective compilation of Xen,QEmu/KVM and test support
in or out at configure time. Also allows to compile on a system
without Xen development installed. All drivers are selected by
default.
Daniel
Diffstat (limited to 'tests/sexpr2xmltest.c')
-rw-r--r-- | tests/sexpr2xmltest.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/sexpr2xmltest.c b/tests/sexpr2xmltest.c index d1d020c49..236ebd13a 100644 --- a/tests/sexpr2xmltest.c +++ b/tests/sexpr2xmltest.c @@ -1,6 +1,7 @@ #include <stdio.h> #include <string.h> +#ifdef WITH_XEN #include "xml.h" #include "xend_internal.h" #include "testutils.h" @@ -190,3 +191,19 @@ main(int argc, char **argv) exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); } +#else /* WITHOUT_XEN */ +int +main(void) +{ + fprintf(stderr, "libvirt compiled without Xen support\n"); + exit(0); +} +#endif /* WITH_XEN */ +/* + * Local variables: + * indent-tabs-mode: nil + * c-indent-level: 4 + * c-basic-offset: 4 + * tab-width: 4 + * End: + */ |