[libvirt] [PATCH] tests: Fix detection of expected errors