mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: qemucapsprobe: Fix construction of path to libqemucapsprobemock.so
Prior to commiteac646ea49
VIR_TEST_MOCK included the path to the build directory, but the code was not fixed after VIR_TEST_MOCK was changed resulting in the following failure when attempting to probe capaibilities: $ ./tests/qemucapsprobe /path/to/qemu/qemu-system-x86_64 > out libqemucapsprobemock.so: No such file or directory Fix the construction of the path to the mock library by concatenating it back with the absolute path to the build directory. Fixes:eac646ea49
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
5d48c5d215
commit
ca016c5630
@ -48,7 +48,7 @@ main(int argc, char **argv)
|
|||||||
virQEMUCaps *caps;
|
virQEMUCaps *caps;
|
||||||
virArch host;
|
virArch host;
|
||||||
virArch guest;
|
virArch guest;
|
||||||
const char *mock = VIR_TEST_MOCK("qemucapsprobe");
|
g_autofree char *mock = g_strdup_printf("%s/%s", abs_builddir, VIR_TEST_MOCK("qemucapsprobe"));
|
||||||
|
|
||||||
if (!virFileIsExecutable(mock)) {
|
if (!virFileIsExecutable(mock)) {
|
||||||
perror(mock);
|
perror(mock);
|
||||||
|
Loading…
Reference in New Issue
Block a user