From nobody Mon Feb 9 09:34:09 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1650883064; cv=none; d=zohomail.com; s=zohoarc; b=SxrJaOcPmb/9aWNLLxtM8fvLsHcgWE3ssCNe8XAvOR+2v1UeT+RZzVte/i/ykul33JLOaNN33U3I9282N2BcLFUMhBBz+2aCr5seDlw3EYZTedq0aajyQtDovQnW3CJbQKgenqaeoD3C54dcaYSJLh3o7aNbAz3fwpS7UALysBk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650883064; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=guX3e3CTmV2cXY1Yhh16yNsmmzuYtfrMLNO/9uKByyA=; b=jT/jZ+iWumlhhY+PF99ZWzdV5469pIDz1WXqb2rk9jXN3xFtttoGfqYF3FB4q9jO0KhHi9kn8MyltN6SFXlfkHCas+SyKWY1hfNJ9cxi7pKbFcoveaSCMjoO9OH/XS2UQ787/sGj1QpqJ7GXDOnU/xfitwa9a6TMLpKP0ZthFpM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1650883064333371.682473069357; Mon, 25 Apr 2022 03:37:44 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-135-cz5FlKcfMbq4_0O4IztTWQ-1; Mon, 25 Apr 2022 06:37:41 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 03B6F833966; Mon, 25 Apr 2022 10:37:39 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id E507A404E4AF; Mon, 25 Apr 2022 10:37:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0C3891940352; Mon, 25 Apr 2022 10:37:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id C1CEB1947BBE for ; Mon, 25 Apr 2022 10:37:36 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A5CD4141DED5; Mon, 25 Apr 2022 10:37:36 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4A399145BEE3 for ; Mon, 25 Apr 2022 10:37:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650883063; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=guX3e3CTmV2cXY1Yhh16yNsmmzuYtfrMLNO/9uKByyA=; b=PFHk/CmuMKWS9wj7yuxdHDR2l6DOqpBFd0fQCZ6ApFJlDuIqHeg/AsH33la2ry2fvvXiss QbUvrhztQhR+Wxi1zCP/19uGHGEcosUe8vsB8K8yIWUuvzWtTelrxxVPcDujUiYD/Ryvew aEat4JhgE8vHQnxOPxaqsrC2lMQyaEI= X-MC-Unique: cz5FlKcfMbq4_0O4IztTWQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 1/2] test: Link qemuhotplugmock with test_utils_qemu and test_utils Date: Mon, 25 Apr 2022 12:37:33 +0200 Message-Id: <9f24a7cc4ebf5f767f44b755bb8851d65e705698.1650882981.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1650883066233100002 Content-Type: text/plain; charset="utf-8"; x-default="true" As of ad81aa8ad07 the qemuhotplugmock.c calls testQemuPrepareHostBackendChardevOne() which is implemented in testutilsqemu.c. However, the mock is not linked with testutilsqemu static library which makes some tools (valgrind particularly) unhappy because the resulting mock library has unresolved symbol. The fix is simple, link mock library with test_utils_qemu_lib and also with test_utils_lib since testutils.c calls some functions from testutils.c. Since these two libraries are declared only after mock_libs[], I had to move the line that declares qemuhotplugmock after those two. Signed-off-by: Michal Privoznik --- tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/meson.build b/tests/meson.build index fd78d8a2fd..8d613d23f2 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -107,7 +107,6 @@ if conf.has('WITH_QEMU') mock_libs +=3D [ { 'name': 'qemucaps2xmlmock' }, { 'name': 'qemucpumock' }, - { 'name': 'qemuhotplugmock' }, { 'name': 'qemuxml2argvmock' }, { 'name': 'virhostidmock' }, ] @@ -178,6 +177,7 @@ if conf.has('WITH_QEMU') =20 mock_libs +=3D [ { 'name': 'qemucapsprobemock', 'link_with': [ test_qemu_driver_lib ] }, + { 'name': 'qemuhotplugmock', 'link_with': [ test_utils_qemu_lib, test_= utils_lib ] }, ] else test_qemu_driver_lib =3D [] --=20 2.35.1