[libvirt] [PATCH 12/20] test: fix error path in testConnectOpen