test: introduce testDriverCloseInternal
test: introduce testDriverCloseInternal

Refactor testConnectClose as it's then obvious that conn->privateData
is set to NULL in all cases. In addition, 'testConnectCloseInternal'
can be better reused.

Signed-off-by: Marc Hartmayer <7bafc8cd4e6394916d396e4f8cde69753be8d066@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <2648abdd55bfebf313fd324b464b047e6eea300e@linux.vnet.ibm.com>
Reviewed-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>

zippy2/libvirt,eskultety/libvirt,andreabolognani/libvirt,jardasgit/libvirt,libvirt/libvirt,olafhering/libvirt,fabianfreyer/libvirt,zippy2/libvirt,jardasgit/libvirt,zippy2/libvirt,jardasgit/libvirt,jardasgit/libvirt,nertpinx/libvirt,libvirt/libvirt,eskultety/libvirt,crobinso/libvirt,fabianfreyer/libvirt,eskultety/libvirt,andreabolognani/libvirt,jfehlig/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,libvirt/libvirt,zippy2/libvirt,nertpinx/libvirt,olafhering/libvirt,jardasgit/libvirt,eskultety/libvirt,andreabolognani/libvirt,nertpinx/libvirt,nertpinx/libvirt,crobinso/libvirt,crobinso/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,crobinso/libvirt,nertpinx/libvirt,olafhering/libvirt,fabianfreyer/libvirt,libvirt/libvirt,jfehlig/libvirt,eskultety/libvirt,jfehlig/libvirt,olafhering/libvirt