mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
test_driver: Call virCheckFlags in testDomainReboot
Currently the flags argument is completely ignored, but it should be checked for any unsupported flags that might have been passed. Signed-off-by: Ilias Stamatis <stamatis.iliass@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
d754a5cc1d
commit
b0ea31af52
@ -1856,13 +1856,19 @@ static int testDomainShutdown(virDomainPtr domain)
|
||||
|
||||
/* Similar behaviour as shutdown */
|
||||
static int testDomainReboot(virDomainPtr domain,
|
||||
unsigned int action ATTRIBUTE_UNUSED)
|
||||
unsigned int flags)
|
||||
{
|
||||
testDriverPtr privconn = domain->conn->privateData;
|
||||
virDomainObjPtr privdom;
|
||||
virObjectEventPtr event = NULL;
|
||||
int ret = -1;
|
||||
|
||||
virCheckFlags(VIR_DOMAIN_REBOOT_DEFAULT |
|
||||
VIR_DOMAIN_REBOOT_ACPI_POWER_BTN |
|
||||
VIR_DOMAIN_REBOOT_GUEST_AGENT |
|
||||
VIR_DOMAIN_REBOOT_INITCTL |
|
||||
VIR_DOMAIN_REBOOT_SIGNAL |
|
||||
VIR_DOMAIN_REBOOT_PARAVIRT, -1);
|
||||
|
||||
if (!(privdom = testDomObjFromDomain(domain)))
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user