From nobody Sun Feb 8 06:04:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1559564927; cv=none; d=zoho.com; s=zohoarc; b=T8qR5wnTRoFC8FKqzJw//n4BWkYFEtLw3p2PO6PDoIyFXIlXxkYzCFUSYVaWnRmB+M/j+ysCwIl+6XhygsGRRfgwZkye+Oen7cUpuok0c+ttOxeFrxmGnbjkfzI+CIFLxbT6PxfnIqxzAM/xe1Oy1tbeCJl9bz55ggNprrZpf1w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559564927; 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:ARC-Authentication-Results; bh=G9oU9C5WKwV62BPCjmvLDNEeOCKZkvkqSXAK0xGYLGU=; b=ZeA2dUN5er5IuML5Bu2IJGYCV5NzreFlhG0QakbcK4Z6/fyMJ48oIPDw85sdUZc00tyWUHdPnHzaqx7K4DcM/yae6a5rxocFKgRMhJR9AOYM8C1ISZ0b5WvA7LzCCqTyatk5kxmF985/JbTIIQKGyahpP26E3qJVtB27b39oDso= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1559564927782397.6872618821367; Mon, 3 Jun 2019 05:28:47 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2FB792EED3E; Mon, 3 Jun 2019 12:28:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 07782648B3; Mon, 3 Jun 2019 12:28:38 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B2DFF1972A; Mon, 3 Jun 2019 12:28:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x53CS6MN003637 for ; Mon, 3 Jun 2019 08:28:06 -0400 Received: by smtp.corp.redhat.com (Postfix) id 27A4B4522; Mon, 3 Jun 2019 12:28:06 +0000 (UTC) Received: from orkuz.int.mamuti.net (unknown [10.40.205.163]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EDFB02DE67 for ; Mon, 3 Jun 2019 12:28:01 +0000 (UTC) Received: by orkuz.int.mamuti.net (Postfix, from userid 500) id 7F6CE2A5DF2; Mon, 3 Jun 2019 14:27:59 +0200 (CEST) From: Jiri Denemark To: libvir-list@redhat.com Date: Mon, 3 Jun 2019 14:27:53 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 2/7] qemuargv2xmltest: Use mocked virQEMUCapsProbeHostCPU X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 03 Jun 2019 12:28:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" The qemuTestParseCapabilitiesArch call would eventually lead to the host CPU being probed via virCPUGetHost. Let's divert this to a mocked version already used by the qemuxml2argvtest. Signed-off-by: Jiri Denemark Reviewed-by: J=C3=A1n Tomko --- tests/Makefile.am | 3 ++- tests/qemuargv2xmltest.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 67375b3c19..6b17d99501 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -585,7 +585,8 @@ qemuxml2xmltest_LDADD =3D $(qemu_LDADDS) $(LDADDS) qemuargv2xmltest_SOURCES =3D \ qemuargv2xmltest.c testutilsqemu.c testutilsqemu.h \ testutils.c testutils.h -qemuargv2xmltest_LDADD =3D $(qemu_LDADDS) $(LDADDS) +qemuargv2xmltest_LDADD =3D libqemutestdriver.la \ + $(LDADDS) =20 qemumonitorjsontest_SOURCES =3D \ qemumonitorjsontest.c \ diff --git a/tests/qemuargv2xmltest.c b/tests/qemuargv2xmltest.c index 2a51e22318..06e32898a2 100644 --- a/tests/qemuargv2xmltest.c +++ b/tests/qemuargv2xmltest.c @@ -309,7 +309,8 @@ mymain(void) return ret =3D=3D 0 ? EXIT_SUCCESS : EXIT_FAILURE; } =20 -VIR_TEST_MAIN(mymain) +VIR_TEST_MAIN_PRELOAD(mymain, + abs_builddir "/.libs/qemucpumock.so") =20 #else =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list