mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
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:
parent
f3954c5537
commit
afe26f76f2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user