[libvirt] [PATCH 2/3] test_driver: Fix testDomainSetMemoryFlags' behaviour on config change

Ján Tomko jtomko at redhat.com
Thu Jul 25 08:38:06 UTC 2019


On Thu, Jul 25, 2019 at 10:19:39AM +0200, Erik Skultety wrote:
>When commit @6ac402c456a added the API whenever VIR_DOMAIN_MEM_MAXIMUM

Same here.

>was passed the code always checked whether the domain was active and
>therefore failed with an error even though only a config change was
>requested. Fix the issue by replacing virDomainObjGetOneDef with
>virDomainObjGetOneDefState which tells us what definition we're
>performing the change on.
>
>Signed-off-by: Erik Skultety <eskultet at redhat.com>
>---
> src/test/test_driver.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190725/4bfa41e1/attachment-0001.sig>


More information about the libvir-list mailing list