From nobody Sun Feb 8 13:27:18 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=1666023418; cv=none; d=zohomail.com; s=zohoarc; b=YIv964SuXTrh4CA5mHmrzJ1V6xZxY14zS0FbUZ5uh9oCfADy+k+U4tFmg85raiVGN5Gzf68aczXr24GlXcGhZKtufVXwM2bXgmXgsEPvjAZELQwEcfDW5zXMFfXoj6fmZn84e0ACDvkM0+q9cGkSNmqaMdRwOPHd+SwiKkDkMP8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666023418; h=Content-Type:Content-Transfer-Encoding:Cc: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=9J2G4j2sAgK3qTIBdrv0liOrJmDXh/9ZZ//9rOmBHS4=; b=dIglfa/F63v3I7rdrzt7BxF4O5VsJSSYoggjOSIR7l3K4LLpebMUiwDd1fqN9F6ttdkwssXJ8VloPgQX7BwCXo+pbLiVsQxNatiJXDJj6+yAHkXWb0xJ5ubbR29i95xwDFccIuaxU3jGWGyr22trufYNp8iAQ+OKCltph8ZMZPI= 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 1666023418208344.8854428446871; Mon, 17 Oct 2022 09:16:58 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-113-Wjg_47x_N9KVojnaJWclJw-1; Mon, 17 Oct 2022 12:16:52 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4298638164E1; Mon, 17 Oct 2022 16:16:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2012040E9929; Mon, 17 Oct 2022 16:16:49 +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 EE6071946A54; Mon, 17 Oct 2022 16:16:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BFF7A194658F for ; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A550D207B344; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) Received: from worklaptop.redhat.com (unknown [10.22.32.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F6C3207B372; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666023417; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=9J2G4j2sAgK3qTIBdrv0liOrJmDXh/9ZZ//9rOmBHS4=; b=XAtmDHt7kBDI+TYlV7VnXJS6+ZKmdIUKVLqg16Mf90r5M9VPAyRKi/r8QrJOlZBO/aJFMZ /QzYzokrFuLP8Bk6+gryPFawaBIFPdvP7Qa5T5rklW8cElTCQU2kEnMcdIAetM5uSNoKOm Kui709h+VCV5iFFn6mX/blK8pyrfEuo= X-MC-Unique: Wjg_47x_N9KVojnaJWclJw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Cole Robinson To: libvir-list@redhat.com Subject: [PATCH 3/3] test: Fix parsing nested XML Date: Mon, 17 Oct 2022 12:16:41 -0400 Message-Id: <4ff73b994b2e3128c5ad63ae84cbc40a04cde2c4.1666023279.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 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: , Cc: Cole Robinson Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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: 1666023419440100007 Content-Type: text/plain; charset="utf-8" Reproducer: ./build/tools/virsh \ --connect test:///`pwd`/examples/xml/test/testnodeinline.xml \ vol-list default-pool Fixes: b3e33a0ef7e62169175280c647aa9ac361bd554d Signed-off-by: Cole Robinson Reviewed-by: Peter Krempa --- src/test/test_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 8675f8ad07..67c70de11d 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -1152,7 +1152,7 @@ testOpenVolumesForPool(const char *file, g_autofree xmlNodePtr *nodes =3D NULL; g_autoptr(virStorageVolDef) volDef =3D NULL; =20 - num =3D virXPathNodeSet("/pool/volume", ctxt, &nodes); + num =3D virXPathNodeSet("./volume", ctxt, &nodes); if (num < 0) return -1; =20 --=20 2.37.3