]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemucapsprobe: Fix construction of path to libqemucapsprobemock.so
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Apr 2024 08:06:28 +0000 (10:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Apr 2024 12:12:17 +0000 (14:12 +0200)
commitca016c56308a97a511e2764dd6e2958e7aba8fea
tree1e8c85b2323258f52a9acde86965e1b6b764d293
parent5d48c5d215071526383b8fc50d81ecde62e4111b
tests: qemucapsprobe: Fix construction of path to libqemucapsprobemock.so

Prior to commit eac646ea490e66 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: eac646ea490e66500609585047f0d800e3645d6b
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/qemucapsprobe.c