From nobody Sat May 30 15:30:26 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) client-ip=38.145.34.151; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1779864862; cv=none; d=zohomail.com; s=zohoarc; b=n0BPUqm+rUMcUO3EDDtOFYXbmmyfqPD2Sr/FTotCMvIqIqCJNlyPzRmQpzMvnWziVxN1C47+sjg7IFEfDkPndvV1QUu+Z3DwNIPLUD2MFOZwbMGXnroxK8smkme381MFAjrI4/GaZ8og6XNY4dI9cKXsOohJLfoSOqPad3PE6mc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1779864862; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=CtmGGBaoQzVuGX8HzMEiQxvnHNeABmUbsv/HLgapIw0=; b=DoL90FIXnRrCOYN0lXHvIkvk73HNPiUZQZVjDY6Vt2as1R0pSxFYtFXOGuxDOW5SqIGu7e65OnkFMQtkfD6o84ZfM9+ljBsEdEGDQDZfppnn9TM0fSewWpXjq4N0M8uofP0lNs4pbhGTJL19y/LsYLcL7uS6t/4mynv+zx880MA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 38.145.34.151 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [38.145.34.151]) by mx.zohomail.com with SMTPS id 177986486208140.45163195205771; Tue, 26 May 2026 23:54:22 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id C283F3F839; Wed, 27 May 2026 02:54:20 -0400 (EDT) Received: from [172.19.199.9] (unknown [10.16.107.18]) by lists.libvirt.org (Postfix) with ESMTP id 1739D41C1D; Wed, 27 May 2026 02:53:23 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id AC859419AC; Wed, 27 May 2026 02:53:15 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 6A08641ABE for ; Wed, 27 May 2026 02:53:14 -0400 (EDT) Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-686-MMrdH-FTOCeyvqsS1M-yiw-1; Wed, 27 May 2026 02:53:09 -0400 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E59D318005B9 for ; Wed, 27 May 2026 06:53:05 +0000 (UTC) Received: from moe (unknown [10.43.3.236]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 430D219560AB for ; Wed, 27 May 2026 06:53:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1779864793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CtmGGBaoQzVuGX8HzMEiQxvnHNeABmUbsv/HLgapIw0=; b=eTL+MDaTVkR2vGy3OBx4VrU8ah/7uTj8PTLt2HIu9a9+1pLzle28vFsQiw6yDWsYS1MWJU zN/QzgU9jw877jaOiKqV1pcKy4n3kZHqXeUQ4CeNilSUG8g3nwJ3jWrFfEvq+FiXpmbGZG 7bHs5cKP+Fz8xnUKoEYJZmjodm6SZnQ= X-MC-Unique: MMrdH-FTOCeyvqsS1M-yiw-1 X-Mimecast-MFC-AGG-ID: MMrdH-FTOCeyvqsS1M-yiw_1779864786 To: devel@lists.libvirt.org Subject: [PATCH] tests: Link qemuxml2argvmock with test_utils_lib Date: Wed, 27 May 2026 08:53:03 +0200 Message-ID: <3855d1ce656d21440707639e418a6e3d5f94d280.1779864777.git.mprivozn@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: z355qysodx2TpMRHmSJhHa3CgI-OY43h9icKIYehQis_1779864786 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: VOJ5QWQ4WI7C2AUCVQM5MEB4QENV5UKE X-Message-ID-Hash: VOJ5QWQ4WI7C2AUCVQM5MEB4QENV5UKE X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1779864872312154100 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik When running qemuxmlconftest under valgrind, it fails with a symbol lookup error: valgrind: symbol lookup error: libvirt.git/_build/tests/libqemuxml2argvmo= ck.so: undefined symbol: virTestMakeDummyFD This occurs because qemuxml2argvmock uses the virTestMakeDummyFD() function (implemented in testutils.c) but does not explicitly link against test_utils_lib. Fix this by linking the test utils library to the mock library, statically. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/meson.build b/tests/meson.build index 83aa0104bb..d1d26fcea2 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -177,7 +177,7 @@ if conf.has('WITH_QEMU') { 'name': 'qemucapsprobemock', 'link_with': [ test_qemu_driver_lib ] }, { 'name': 'qemucpumock' }, { 'name': 'qemuhotplugmock', 'link_with': [ test_qemu_driver_lib, test= _utils_qemu_lib, test_utils_lib ] }, - { 'name': 'qemuxml2argvmock' }, + { 'name': 'qemuxml2argvmock', 'link_with': [ test_utils_lib ] }, { 'name': 'virhostidmock' }, ] else --=20 2.53.0