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 <smitterl@redhat.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Sebastian Mitterle 2020-09-23 17:33:12 +02:00 committed by Peter Krempa
parent f3954c5537
commit afe26f76f2

View 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;
}