]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
testutils: Drop libtool binary name handling
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 16 May 2021 16:21:10 +0000 (18:21 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 May 2021 07:25:03 +0000 (09:25 +0200)
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>
tests/testutils.c

index d6b7c2a5800d76c1a959ea43851c022bf8e1b82a..870a3b081acbb956b6068682343245f21dbd26ae 100644 (file)
@@ -750,8 +750,7 @@ int virTestMain(int argc,
     size_t noutputs = 0;
     virLogOutput *output = NULL;
     virLogOutput **outputs = NULL;
-    g_autofree char *baseprogname = NULL;
-    const char *progname;
+    g_autofree char *progname = NULL;
     g_autofree const char **preloads = NULL;
     size_t npreloads = 0;
     g_autofree char *mock = NULL;
@@ -784,9 +783,7 @@ int virTestMain(int argc,
         VIR_TEST_PRELOAD(mock);
     }
 
-    progname = baseprogname = g_path_get_basename(argv[0]);
-    if (STRPREFIX(progname, "lt-"))
-        progname += 3;
+    progname = g_path_get_basename(argv[0]);
 
     g_setenv("VIR_TEST_MOCK_PROGNAME", progname, TRUE);