[Libvirt-cim] [PATCH] [TEST] Addring new tc 01_enum_crs.py to verify CRS fields

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Thu Oct 23 22:20:20 UTC 2008


> +    crs_val = crs[0]

You also want to check the length of crs.  The provider should always 
return an instance, but it's always good to have a check.  If something 
causes the provider not to return an instance and also not return a 
failure, then you'd be accessing the array out of bounds.

-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list