From nobody Fri Oct 18 08:37:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; 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 8.43.85.245 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=1717620191; cv=none; d=zohomail.com; s=zohoarc; b=H/VVXNK5TyLVBDKaTx2pWuKmiNw8qNK1t26G4pRmSl/8SRroMLNboDEbZF77dtbd9kSv1JOK2zgq5kS76Ei7RSWWtR7y2V6NUKE31M86ELG9BwyHBOhoVT527cZPd3ikawkuq83bCAdeyLPzBSb3i43EHHwFOGjFO/BvBLIu0HE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1717620191; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id; bh=xvkpA/D0w5TJvoQ7Exxm6xTe6jmhplkvecG8eFx+UJQ=; b=ny7srHif15IePLRSXvNTSMEUA6RjmNHD38va9ZtCr5rCx5BSb9etUdCkrPcr+FriFsb1A0HXX2Kt7CEhzRfZlf6TzMN0Paq6FizHXKWrDUnRsZpNcbjxfg/fkIn14dxSbahX4UkvSOhGFlC+bvjHiEDk/VbwP+Pdj5TII5S/pT4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 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 [8.43.85.245]) by mx.zohomail.com with SMTPS id 1717620191167824.6955485501775; Wed, 5 Jun 2024 13:43:11 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 2044D21C3; Wed, 5 Jun 2024 16:43:10 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 689F221CA; Wed, 5 Jun 2024 16:38:37 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 5B629215B; Wed, 5 Jun 2024 16:38:25 -0400 (EDT) Received: from mx0a-00190b01.pphosted.com (mx0a-00190b01.pphosted.com [67.231.149.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id ECC791F56 for ; Wed, 5 Jun 2024 16:38:00 -0400 (EDT) Received: from pps.filterd (m0409409.ppops.net [127.0.0.1]) by m0409409.ppops.net-00190b01. (8.18.1.2/8.18.1.2) with ESMTP id 455BppjT031278; Wed, 5 Jun 2024 21:37:59 +0100 Received: from prod-mail-ppoint1 (prod-mail-ppoint1.akamai.com [184.51.33.18] (may be forged)) by m0409409.ppops.net-00190b01. (PPS) with ESMTPS id 3yj9nqjmjh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 21:37:59 +0100 (BST) Received: from pps.filterd (prod-mail-ppoint1.akamai.com [127.0.0.1]) by prod-mail-ppoint1.akamai.com (8.17.1.19/8.17.1.19) with ESMTP id 455Hb9wd005253; Wed, 5 Jun 2024 16:37:58 -0400 Received: from prod-mail-relay10.akamai.com ([172.27.118.251]) by prod-mail-ppoint1.akamai.com (PPS) with ESMTP id 3yjeg0bfbv-1; Wed, 05 Jun 2024 16:37:58 -0400 Received: from bos-lhvcg5.bos01.corp.akamai.com (bos-lhvcg5.bos01.corp.akamai.com [172.28.222.58]) by prod-mail-relay10.akamai.com (Postfix) with ESMTP id 2A34D65191; Wed, 5 Jun 2024 20:37:58 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: ** X-Spam-Status: No, score=2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_SBL_CSS,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=jan2016.eng; bh=4LfS72COU 8Y6ZGX93YSbxnN5PMjvYS7QcBysrfdf3Vo=; b=GfiQyuwXOjddb7TxgT/NliKUM fXAcwU9wvGP59r/eVN5I5FhKFJZBP1IghNKnKyimrMCwVr4U0UASyd1FspJmhuqw nXvpmf7VZZscSUmj9u/GlNqVDOimMdYPgYcopB9j/zlth2b7VimowyaQLqbGKzWI bEZ6ef6w0m34qUezVqFWdTKrBTj/xr05HfLxG4MxxZwbCb2yVhRJI58slFCOij28 eauwTDdMr0B4ElIgs+AdJOs4dqphxZ/7JwXRq+ExBMu0ld9QLbdGgrTK7x7yvSZ3 iJMSsbasilvjLAx9C9qmQexAtZ+sBPzV8x2b60lYarvzKEHrLvjccKFBEZCdA== To: devel@lists.libvirt.org Subject: [PATCH v2 3/4] Update unit test to support multiple memory backends Date: Wed, 5 Jun 2024 16:37:37 -0400 Message-Id: <20240605203738.1880333-4-mgalaxy@akamai.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605203738.1880333-1-mgalaxy@akamai.com> References: <20240605203738.1880333-1-mgalaxy@akamai.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-05_02,2024-06-05_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 spamscore=0 phishscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406050156 X-Proofpoint-GUID: QT11sV7vDrddaYGqgmOoKjBtuQyljXQt X-Proofpoint-ORIG-GUID: QT11sV7vDrddaYGqgmOoKjBtuQyljXQt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-05_02,2024-06-05_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 bulkscore=0 impostorscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406050156 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 75V4XF6OMTSABRE5EDFM74E7342M4CN4 X-Message-ID-Hash: 75V4XF6OMTSABRE5EDFM74E7342M4CN4 X-MailFrom: mgalaxy@akamai.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: steven.sistare@oracle.com, johunt@akamai.com, cweng@akamai.com, bchaney@akamai.com, trakotoz@akamai.com, mkletzan@redhat.com, anthony.yznaga@oracle.com, mprivozn@redhat.com, Michael Galaxy X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Michael Galaxy via Devel Reply-To: mgalaxy@akamai.com X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1717620192255100001 Content-Type: text/plain; charset="utf-8" From: Michael Galaxy Update the associated test case. Signed-off-by: Michael Galaxy --- tests/testutilsqemu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c index d70850cb5d..dd8db4835e 100644 --- a/tests/testutilsqemu.c +++ b/tests/testutilsqemu.c @@ -320,8 +320,9 @@ int qemuTestDriverInit(virQEMUDriver *driver) cfg->libDir =3D g_strdup("/var/lib/libvirt/qemu"); VIR_FREE(cfg->channelTargetDir); cfg->channelTargetDir =3D g_strdup("/var/run/libvirt/qemu/channel"); - VIR_FREE(cfg->memoryBackingDir); - cfg->memoryBackingDir =3D g_strdup("/var/lib/libvirt/qemu/ram"); + g_free(cfg->memoryBackingDirs); + cfg->memoryBackingDirs =3D g_new0(char *, 1); + cfg->memoryBackingDirs[0] =3D g_strdup("/var/lib/libvirt/qemu/ram"); VIR_FREE(cfg->nvramDir); cfg->nvramDir =3D g_strdup("/var/lib/libvirt/qemu/nvram"); VIR_FREE(cfg->passtStateDir); --=20 2.34.1