From afe26f76f2527ea1ccc9b00759f4dfe09f5cd191 Mon Sep 17 00:00:00 2001 From: Sebastian Mitterle Date: Wed, 23 Sep 2020 17:33:12 +0200 Subject: [PATCH] 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 --- tests/qemuxml2argvmock.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.47.2