]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvtest: Run some test only on Linux
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Nov 2014 09:26:43 +0000 (10:26 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Nov 2014 15:57:19 +0000 (16:57 +0100)
commit8d659b177ff44be37bdb36648eaabbaec457c941
tree3d017491427b38cc457d9ae29e212056df5004f5
parent5530f248db4974379f584eab5ad73dd20cf05de7
qemuxml2argvtest: Run some test only on Linux

As I was reviewing bhyve commits, I've noticed qemuxml2argvtest
failing for some test cases. This is not bug in qemu driver code
rather than being unable to load qemuxml2argvmock on non-Linux
platforms. For instance:

318) QEMU XML-2-ARGV numatune-memnode
... libvirt:  error : internal error: NUMA node 0 is unavailable
FAILED

Rather than disabling qemuxml2argvtest on BSD (we do compile qemu
driver there) disable only those test cases which require mocking.
To achieve that goal new DO_TEST_LINUX() macro is introduced which
invokes the test case on Linux only and consume arguments on other
systems.

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