From nobody Mon Feb 9 01:20:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1629463839995682.9065237669612; Fri, 20 Aug 2021 05:50:39 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-235-jDegrUvGP9WaqJI8ohRzbQ-1; Fri, 20 Aug 2021 08:50:37 -0400 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id F0DBA107ACF5; Fri, 20 Aug 2021 12:50:31 +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 D531D7BE5B; Fri, 20 Aug 2021 12:50:31 +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 A2F56181A6E3; Fri, 20 Aug 2021 12:50:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17KCj0Lw013579 for ; Fri, 20 Aug 2021 08:45:00 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3105C113B7F; Fri, 20 Aug 2021 12:45:00 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2C22C1140EC for ; Fri, 20 Aug 2021 12:45:00 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1505680234F for ; Fri, 20 Aug 2021 12:45:00 +0000 (UTC) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-498-OHOOZAyAPs6RSjPznGmPmw-1; Fri, 20 Aug 2021 08:44:58 -0400 Received: by mail-pf1-f178.google.com with SMTP id j187so8487103pfg.4 for ; Fri, 20 Aug 2021 05:44:57 -0700 (PDT) Received: from localhost ([38.94.109.214]) by smtp.gmail.com with ESMTPSA id nn3sm5562353pjb.9.2021.08.20.05.44.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 05:44:56 -0700 (PDT) X-MC-Unique: jDegrUvGP9WaqJI8ohRzbQ-1 X-MC-Unique: OHOOZAyAPs6RSjPznGmPmw-1 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=914spF7Wqfx1abHYiuDExF1rU9O8xzeCQdIWpSAGr+w=; b=MwEH4jzgHAjTB0HJUlx7PA/jq0jRHT1qqttmimpHUhagK06zYB0RqBsV7td3yRFyqd /CLzoySOrL8I1WilRy3C/vwBhISyRkjry2WzFYNuOdJVU3njfJu1QPkXy5Qik2hBgGue 2NjifMRn09X7QJ6m4NzF/VXMw5fk/2AINbGjm+MOI/YqeliECLoYWwYqDMju/O36Kc+R AmyQQMqVFhUBN6k2c3asADIl6+F9kWPV1Vu/dl/C4/ENZJXGs4sQeKbRXUp2SF3DIXZJ ggdUQaiPIXbSxTNcVg92VgOTJ1/HsMerszeqcjnWWnN2h1sUTVUHo69pEMDy/KT7hlBD bkZg== X-Gm-Message-State: AOAM5321lkmbCtia5qK8WzeDxcBhj6rB0+ElzW9uQpXaNfFtVoh6X2GV Bm4e3tgrQNxsKtjm/8+TgrnjrDG0yJ9mBP1mO04= X-Google-Smtp-Source: ABdhPJyBSeJR2wxPLKQEeVc4lAnBXd4SKfSP8Y1BwaXr6GeMuGtHcuRhkGWcVRR6Ef3h5HwJjzosjQ== X-Received: by 2002:a65:6919:: with SMTP id s25mr18683725pgq.2.1629463496904; Fri, 20 Aug 2021 05:44:56 -0700 (PDT) From: Luke Yue To: libvir-list@redhat.com Subject: [PATCH v2 04/12] test_driver: Implement virDomainDetachDeviceAlias Date: Fri, 20 Aug 2021 20:44:31 +0800 Message-Id: <20210820124439.535276-5-lukedyue@gmail.com> In-Reply-To: <20210820124439.535276-1-lukedyue@gmail.com> References: <20210820124439.535276-1-lukedyue@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1629463841098100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Luke Yue --- src/test/test_driver.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 5e4d6d37ef..6cabf78e7c 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -9737,6 +9737,16 @@ testDomainDetachDeviceFlags(virDomainPtr dom, return testDomainChgDevice(dom, VIR_DOMAIN_DEVICE_ACTION_DETACH, xml, NULL, flags); } + +static int +testDomainDetachDeviceAlias(virDomainPtr dom, + const char *alias, + unsigned int flags) +{ + return testDomainChgDevice(dom, VIR_DOMAIN_DEVICE_ACTION_DETACH, + NULL, alias, flags); +} + /* * Test driver */ @@ -9828,6 +9838,7 @@ static virHypervisorDriver testHypervisorDriver =3D { .domainFSFreeze =3D testDomainFSFreeze, /* 5.7.0 */ .domainFSThaw =3D testDomainFSThaw, /* 5.7.0 */ .domainFSTrim =3D testDomainFSTrim, /* 5.7.0 */ + .domainDetachDeviceAlias =3D testDomainDetachDeviceAlias, /* 7.7.0 */ .domainDetachDeviceFlags =3D testDomainDetachDeviceFlags, /* 7.7.0 */ .domainGetAutostart =3D testDomainGetAutostart, /* 0.3.2 */ .domainSetAutostart =3D testDomainSetAutostart, /* 0.3.2 */ --=20 2.33.0