domainsnapshotxml2xmltest: Clean up labels and use bool instead of int
domainsnapshotxml2xmltest: Clean up labels and use bool instead of int

The 'internal' variable holds only two states; convert it to a boolean
and the 'fail' label should be called 'cleanup'. This patch also fixes a
minor memory leak of driver capabilities in case the XML config object
can't be allocated.

andreabolognani/libvirt,olafhering/libvirt,nertpinx/libvirt,datto/libvirt,shugaoye/libvirt,jfehlig/libvirt,nertpinx/libvirt,shugaoye/libvirt,taget/libvirt,elmarco/libvirt,jfehlig/libvirt,olafhering/libvirt,crobinso/libvirt,agx/libvirt,agx/libvirt,elmarco/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,elmarco/libvirt,taget/libvirt,nertpinx/libvirt,nertpinx/libvirt,shugaoye/libvirt,jardasgit/libvirt,datto/libvirt,zippy2/libvirt,agx/libvirt,libvirt/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,crobinso/libvirt,andreabolognani/libvirt,rlaager/libvirt,rlaager/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,elmarco/libvirt,zippy2/libvirt,jardasgit/libvirt,eskultety/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,zippy2/libvirt,fabianfreyer/libvirt,taget/libvirt,datto/libvirt,nertpinx/libvirt,zippy2/libvirt,olafhering/libvirt,eskultety/libvirt,crobinso/libvirt,elmarco/libvirt,shugaoye/libvirt,rlaager/libvirt,jardasgit/libvirt,olafhering/libvirt,eskultety/libvirt,crobinso/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,datto/libvirt,agx/libvirt,eskultety/libvirt,rlaager/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,libvirt/libvirt,andreabolognani/libvirt,eskultety/libvirt,datto/libvirt,libvirt/libvirt,taget/libvirt,taget/libvirt,libvirt/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,rlaager/libvirt,agx/libvirt,jfehlig/libvirt