[libvirt] [PATCH] [libvirt-tck] Fix expected error code

Eric Blake eblake at redhat.com
Thu Feb 17 02:48:47 UTC 2011


On 02/16/2011 07:34 PM, Jim Fehlig wrote:
> Attempting to set a transient domain autostart results in
> ERR_OPERATION_INVALID not ERR_INTERNAL_ERROR.
> ---
>  scripts/domain/051-transient-autostart.t |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/domain/051-transient-autostart.t b/scripts/domain/051-transient-autostart.t
> index 3e5ea61..26ca82b 100644
> --- a/scripts/domain/051-transient-autostart.t
> +++ b/scripts/domain/051-transient-autostart.t
> @@ -48,7 +48,7 @@ my $auto = $dom->get_autostart();
>  
>  ok(!$auto, "autostart is disabled for transient VMs");
>  
> -ok_error(sub { $dom->set_autostart(1) }, "Set autostart not supported on transient VMs", Sys::Virt::Error::ERR_INTERNAL_ERROR);
> +ok_error(sub { $dom->set_autostart(1) }, "Set autostart not supported on transient VMs", Sys::Virt::Error::ERR_OPERATION_INVALID);

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110216/09e3e33c/attachment-0001.sig>


More information about the libvir-list mailing list