]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: qemuxml2argvmock: Report error in virNumaNodesetIsAvailable
authorSebastian Mitterle <smitterl@redhat.com>
Wed, 23 Sep 2020 15:33:12 +0000 (17:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Sep 2020 20:45:45 +0000 (22:45 +0200)
The code path is invoked by one of the test cases. Upcoming testing of
error messages would fail.

Signed-off-by: Sebastian Mitterle <smitterl@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tests/qemuxml2argvmock.c

index e5841bc8e338378226c6150a0a066a457fe7ecbb..9bf4357b66fc5d4e75a87b9325dca5278a6e8023 100644 (file)
@@ -23,6 +23,7 @@
 #include "vircommand.h"
 #include "vircrypto.h"
 #include "virmock.h"
+#include "virlog.h"
 #include "virnetdev.h"
 #include "virnetdevip.h"
 #include "virnetdevtap.h"
@@ -91,6 +92,8 @@ virNumaNodesetIsAvailable(virBitmapPtr nodeset)
         if (virNumaNodeIsAvailable(bit))
             continue;
 
+        virReportError(VIR_ERR_INTERNAL_ERROR,
+                       "Mock: no numa node set is available at bit %zd", bit);
         return false;
     }