mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-06 09:55:46 +00:00
testutils: Drop libtool binary name handling
Back in the old days, we used to use libtool to run compiled libraries. That meant we had to deal with "lt-" prefix for our binaries. With meson that's no longer the case. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
df28ba289c
commit
351742e859
@ -750,8 +750,7 @@ int virTestMain(int argc,
|
|||||||
size_t noutputs = 0;
|
size_t noutputs = 0;
|
||||||
virLogOutput *output = NULL;
|
virLogOutput *output = NULL;
|
||||||
virLogOutput **outputs = NULL;
|
virLogOutput **outputs = NULL;
|
||||||
g_autofree char *baseprogname = NULL;
|
g_autofree char *progname = NULL;
|
||||||
const char *progname;
|
|
||||||
g_autofree const char **preloads = NULL;
|
g_autofree const char **preloads = NULL;
|
||||||
size_t npreloads = 0;
|
size_t npreloads = 0;
|
||||||
g_autofree char *mock = NULL;
|
g_autofree char *mock = NULL;
|
||||||
@ -784,9 +783,7 @@ int virTestMain(int argc,
|
|||||||
VIR_TEST_PRELOAD(mock);
|
VIR_TEST_PRELOAD(mock);
|
||||||
}
|
}
|
||||||
|
|
||||||
progname = baseprogname = g_path_get_basename(argv[0]);
|
progname = g_path_get_basename(argv[0]);
|
||||||
if (STRPREFIX(progname, "lt-"))
|
|
||||||
progname += 3;
|
|
||||||
|
|
||||||
g_setenv("VIR_TEST_MOCK_PROGNAME", progname, TRUE);
|
g_setenv("VIR_TEST_MOCK_PROGNAME", progname, TRUE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user