diff --git a/tests/qemucapsprobe.c b/tests/qemucapsprobe.c index 76c18f0dcd..cd117170ab 100644 --- a/tests/qemucapsprobe.c +++ b/tests/qemucapsprobe.c @@ -48,7 +48,7 @@ main(int argc, char **argv) virQEMUCaps *caps; virArch host; 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)) { perror(mock);