]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Don't link vmx2xmltest with esx_lib
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Nov 2025 13:54:27 +0000 (14:54 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Nov 2025 14:59:56 +0000 (15:59 +0100)
When reworking the vmx2xmltest to call esxParseVMXFileName() from
the ESX driver I also made the test link with the driver
statically. But the function then calls some other functions
which are mocked in vmx2xmlmock. Now, on many systems this works
just fine as the dynamic linker finds the mocked functions first.
But on Fedora 41 and Fedora 42 the dynamic linker resolves the
symbols to those from statically linked library rendering our
mock ineffective.

Just don't link in the esx_lib.

Fixes: f82d30307da8bea396a32dcab2ba9be5c3236b7c
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/meson.build

index 1f25f674f497704d792e15c8646c2a1e88bdb889..bb6ee6b4eee12c6983159518767ec58375825410 100644 (file)
@@ -550,7 +550,7 @@ endif
 
 if conf.has('WITH_VMX') and conf.has('WITH_ESX')
   tests += [
-    { 'name': 'vmx2xmltest', 'include': [ esx_inc_dir ], 'link_with': [ esx_lib ] },
+    { 'name': 'vmx2xmltest', 'include': [ esx_inc_dir ] },
     { 'name': 'xml2vmxtest' },
   ]
   mock_libs += [