mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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 */
|
/* Similar behaviour as shutdown */
|
||||||
static int testDomainReboot(virDomainPtr domain,
|
static int testDomainReboot(virDomainPtr domain,
|
||||||
unsigned int action ATTRIBUTE_UNUSED)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = domain->conn->privateData;
|
testDriverPtr privconn = domain->conn->privateData;
|
||||||
virDomainObjPtr privdom;
|
virDomainObjPtr privdom;
|
||||||
virObjectEventPtr event = NULL;
|
virObjectEventPtr event = NULL;
|
||||||
int ret = -1;
|
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)))
|
if (!(privdom = testDomObjFromDomain(domain)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user