From nobody Wed Nov 27 02:39:49 2024 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; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1562075521; cv=none; d=zoho.com; s=zohoarc; b=Zykvhs7aTRhQ4BkqatjH3C/+naZ406bONJxVmP9HrZR5sGn46evjXyHzHqer5ui/fssahRfKBfQQKQp63D6MHHQ4dBbwbMi7QE1KnSqZmVMt6THyx6/Hwmu7N+ckEV7dYHCEP+/t9uZLIqX3v9bSNKrYMOal8a6XwbNVAJEI1q8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562075521; 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=3f94nKA0P6jdsX2wlhgdLsXPLFDxjSJ817vHrlDID7A=; b=gqOnSksuAekqcWhKRRLIAAn2RAOBzHUfmZJhnrWnkqu1LhT/g+O4VNTzqRvO91qGwsd+ZX4YfR2kHR/eUP3noAvOBUtgvcM/gBXs5cBK8P280dLAUQvar3gjSM4DH8nr4q+SleAHxzWMf3LuS+z3iK1vz8TXUb+WGDI0whG0A+w= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail 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 1562075521345793.4417856370798; Tue, 2 Jul 2019 06:52:01 -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 88057C024906; Tue, 2 Jul 2019 13:51:47 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5770F17AA7; Tue, 2 Jul 2019 13:51:43 +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 10B0D18363C3; Tue, 2 Jul 2019 13:51:40 +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 x62Don2D028112 for ; Tue, 2 Jul 2019 09:50:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2254AF6CE; Tue, 2 Jul 2019 13:50:49 +0000 (UTC) Received: from mx1.redhat.com (ext-mx20.extmail.prod.ext.phx2.redhat.com [10.5.110.49]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1C710196E5 for ; Tue, 2 Jul 2019 13:50:46 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9C47730BBE9A for ; Tue, 2 Jul 2019 13:50:30 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id v19so1104393wmj.5 for ; Tue, 02 Jul 2019 06:50:30 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id p4sm15355004wrx.97.2019.07.02.06.50.27 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 06:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=0xwQnvDqrVlX8IdQTR9pjU59yf61L0udQbAzc5rOtto=; b=R9V+xlGY8Q6wjDGZxeWEQsA+s9cA18g5SSYh+h0z6AgOXW3pEBfXa6nREL7hxxU6yy 0aRCq3KbemN46mJ+XmmzWSpeHdxzH15xhw+BGM3c8mDfewY0u0IBIB9Glk6BtX4RzAug gofkGYkuyj0v6x2V9ghyTM+67YQNAc9ECGHInmb1p829arqoB00hTL/GvOo9TgZzWktG Jvt9pOeZ8OCjGN2JiQhu4wi9ChtDopVOeyBglI0tg7gZzsPxomw5/jSYiUO4do5ISZQX 7G5UPM9AliBs6uIuDwCHFFKXiXC6Yz1ENdeLV0P96jjU0hpgdfoAZVT/lh5PVCvFviOg +i4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0xwQnvDqrVlX8IdQTR9pjU59yf61L0udQbAzc5rOtto=; b=t0/GkGqB6xoNf0t3Ag7ugHFhbrz4W5mB1cIrTw3CFbS7VOpSUamopRm5GghboKZt0u AaaG8iJ/CjUH6kNEKbR7QCMR7wc8rLvWdp4i6Gs+PFmHomqaiLrEZC1q0mf9iv6gfzm7 zKNTp9FHKy/5ROwWsWjulheedlDXzybJIo8dBQbqwvH8uHWx6ayXlRZcytvOhmjs1jKa 1XGD7gz7Ayq5xXzfOSg1np5R5WWx/hJGVkUfywT400ZPzQXUoJrwb/u7uBjZbDoR+KPP M9+yxE7fhRx+XTXq3yReDNMQkk6sKMHdyMKW221DZv4PDX3KWW3mL2E2I1kCfmQ+LUmx IxEQ== X-Gm-Message-State: APjAAAWUlP8Ka/XCCqdg0i6gjota7h18IGsbCx+7/mFA2OPU/AUu5ZNJ UlnVlLS4Kugq6yO/Ievos52DG2OA/14= X-Google-Smtp-Source: APXvYqyKg2J5FBt5zIYKFzPKB8SN8GGt6TnCb0Wb7Y+cT9eYSYjyy4fB29b99twirsHuPKiwR1c/tw== X-Received: by 2002:a1c:e108:: with SMTP id y8mr3498846wmg.65.1562075428563; Tue, 02 Jul 2019 06:50:28 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Tue, 2 Jul 2019 15:49:41 +0200 Message-Id: <20190702134944.6258-2-stamatis.iliass@gmail.com> In-Reply-To: <20190702134944.6258-1-stamatis.iliass@gmail.com> References: <20190702134944.6258-1-stamatis.iliass@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Tue, 02 Jul 2019 13:50:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Tue, 02 Jul 2019 13:50:30 +0000 (UTC) for IP:'209.85.128.68' DOMAIN:'mail-wm1-f68.google.com' HELO:'mail-wm1-f68.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.11 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS) 209.85.128.68 mail-wm1-f68.google.com 209.85.128.68 mail-wm1-f68.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.49 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 1/4] test_driver: introduce TEST_SET_PARAM macro 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.32]); Tue, 02 Jul 2019 13:51:59 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This macro can be used by most or all of the DomainGetXXXParameters APIs. Signed-off-by: Ilias Stamatis Reviewed-by: Erik Skultety --- src/test/test_driver.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 4b1f2724a0..c0608a4bea 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -2844,6 +2844,16 @@ static char *testDomainGetXMLDesc(virDomainPtr domai= n, unsigned int flags) return ret; } + +#define TEST_SET_PARAM(index, name, type, value) \ + if (index < *nparams && \ + virTypedParameterAssign(¶ms[index], name, type, value) < 0) \ + goto cleanup + + +#undef TEST_SET_PARAM + + static int testConnectNumOfDefinedDomains(virConnectPtr conn) { testDriverPtr privconn =3D conn->privateData; -- 2.22.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list