From nobody Sat Nov 23 16:58:00 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=1722978818; cv=none; d=zohomail.com; s=zohoarc; b=MuyUoN7+schtSh26MKbPoGShWEStggbd7oBVa0jp8W6tvk9srYBae9Rvrh7G2aYsfbAISZlh6zWQwnLuqBOWUDc8RMlmfao46B86utkLoA+H0vZK3huHgxddz6i1GBi+4kihu2U7PcwhcdHojynVljLObREHeFu0SqBI2k0yrDs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1722978818; 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=QaVykYXErSEOBgmWgdasiKXvi/ILj9H6UVmDY7yFh1zAz4Rq6Go5CN+xNOgI+0BJjMuCHs8UtCYOoomy1rMA+ZRjQekzB9QQwxTlmJ1Rq9rujBT7K/BSGcdCxT/miKVRmatX9EmBE7U6lU8uiiwocuiMg5CQgfLIHYTswOmKenw= 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 1722978818343637.9386577364575; Tue, 6 Aug 2024 14:13:38 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 4DE87BF8; Tue, 6 Aug 2024 17:13:37 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id E0A71C17; Tue, 6 Aug 2024 17:13:18 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id CB81AC17; Tue, 6 Aug 2024 17:13:16 -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 B56ECBD4 for ; Tue, 6 Aug 2024 17:13:15 -0400 (EDT) Received: from pps.filterd (m0122332.ppops.net [127.0.0.1]) by mx0a-00190b01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 476GxPpU009304; Tue, 6 Aug 2024 21:32:32 +0100 Received: from prod-mail-ppoint1 (prod-mail-ppoint1.akamai.com [184.51.33.18] (may be forged)) by mx0a-00190b01.pphosted.com (PPS) with ESMTPS id 40sckpudq0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Aug 2024 21:32:32 +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 476IDKdX028312; Tue, 6 Aug 2024 16:32:31 -0400 Received: from prod-mail-relay10.akamai.com ([172.27.118.251]) by prod-mail-ppoint1.akamai.com (PPS) with ESMTP id 40sfvybddk-1; Tue, 06 Aug 2024 16:32:31 -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 B2B4665888; Tue, 6 Aug 2024 20:32:30 +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=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE autolearn=unavailable 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=oX2OtumivHB4dbuUeSARwfB0X P3RYulkhN9nHUJLDSkIbmZ0HCwdgAtvwmyZBSTP04EiNiGKjuLjKwKw5kFG+MQ/A KFbxYavr1uHgqy69+OT3eofWTGduj7og3KcBVdUww5erGsu+JiIjNct5iupNwmKC h7oN0YV0TirtI92KJiyql3kmxkvdplA+06PB47RwPqveuBH4xiTU99L/otLKg5mL fGivEjT2zBKpthdJH8hXxI5zl1VZFgolD+NsUUl/pmyAGOcbeRlFZECF/iWgWM1z DGH5zCv7iHbe9IZt08nj/achtk8c43ZQp46ZhIXsE9teJLP/ngD3I6HY/Uc6g== To: devel@lists.libvirt.org Subject: [PATCH RESEND v2 3/4] Update unit test to support multiple memory backends Date: Tue, 6 Aug 2024 16:32:20 -0400 Message-Id: <20240806203221.3673616-4-mgalaxy@akamai.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806203221.3673616-1-mgalaxy@akamai.com> References: <20240806203221.3673616-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-08-06_16,2024-08-06_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408060143 X-Proofpoint-GUID: pgmVUPVS_5PoMgCqEGsOtcnChjFeaDh4 X-Proofpoint-ORIG-GUID: pgmVUPVS_5PoMgCqEGsOtcnChjFeaDh4 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-08-06_16,2024-08-06_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 impostorscore=0 phishscore=0 mlxlogscore=992 adultscore=0 suspectscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408060143 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: FJZNN4GT65KQFWIKBHXLAYMO7KUHYLID X-Message-ID-Hash: FJZNN4GT65KQFWIKBHXLAYMO7KUHYLID 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, mgalaxy@akamai.com 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: 1722978820234116600 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