From: Sebastian Mitterle Date: Wed, 23 Sep 2020 15:33:12 +0000 (+0200) Subject: tests: qemuxml2argvmock: Report error in virNumaNodesetIsAvailable X-Git-Tag: v6.8.0-rc1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afe26f76f2527ea1ccc9b00759f4dfe09f5cd191;p=thirdparty%2Flibvirt.git tests: qemuxml2argvmock: Report error in virNumaNodesetIsAvailable The code path is invoked by one of the test cases. Upcoming testing of error messages would fail. Signed-off-by: Sebastian Mitterle Signed-off-by: Peter Krempa Reviewed-by: Peter Krempa --- diff --git a/tests/qemuxml2argvmock.c b/tests/qemuxml2argvmock.c index e5841bc8e3..9bf4357b66 100644 --- a/tests/qemuxml2argvmock.c +++ b/tests/qemuxml2argvmock.c @@ -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; }