[libvirt] [PATCH] tests: Use correct function name in error path