]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: skip qemu in tests when !WITH_QEMU
authorEric Blake <eblake@redhat.com>
Fri, 31 May 2013 16:47:22 +0000 (10:47 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 31 May 2013 17:35:34 +0000 (11:35 -0600)
commit3d2b971518a61886e28626886c99dcc0f5a8285c
treee5a9f7064f492f754998f530852bf3a02f3680f4
parenta261996255037f7ca0bab1ae5c22608e32a0abe3
build: skip qemu in tests when !WITH_QEMU

A mingw build (where the qemu driver is not built, so WITH_QEMU
is undefined) failed with:

In file included from ../../src/qemu/qemu_command.h:30:0,
                 from ../../tests/testutilsqemu.h:4,
                 from ../../tests/networkxml2xmltest.c:14:
../../src/qemu/qemu_conf.h:53:4: error: #error "Port me"

But since testutilsqemu.c is already conditional, the header
should be likewise.

* tests/testutilsqemu.h: Make content conditional.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/testutilsqemu.h