[libvirt] [PATCH 2/4] testNodeGetCellsFreeMemory: Fix off by one error

John Ferlan jferlan at redhat.com
Wed Oct 12 21:00:17 UTC 2016



On 10/05/2016 03:30 AM, Michal Privoznik wrote:
> Consider the following scenario:
> 
>   virsh # freecell --all
>       0:       2048 KiB
>       1:       4096 KiB
>   --------------------
>   Total:       6144 KiB
> 
>   virsh # freecell 0
>   0: 2048 KiB
> 
>   virsh # freecell 1
>   1: 4096 KiB
> 
> And now before this change:
> 
>   virsh # freecell 2
> 
> After this change:
> 
>   virsh # freecell 2
>   error: invalid argument: Range exceeds available cells
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/test/test_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

ACK

John




More information about the libvir-list mailing list