mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-31 22:17:17 +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 "vircommand.h"
|
||||||
#include "vircrypto.h"
|
#include "vircrypto.h"
|
||||||
#include "virmock.h"
|
#include "virmock.h"
|
||||||
|
#include "virlog.h"
|
||||||
#include "virnetdev.h"
|
#include "virnetdev.h"
|
||||||
#include "virnetdevip.h"
|
#include "virnetdevip.h"
|
||||||
#include "virnetdevtap.h"
|
#include "virnetdevtap.h"
|
||||||
@ -91,6 +92,8 @@ virNumaNodesetIsAvailable(virBitmapPtr nodeset)
|
|||||||
if (virNumaNodeIsAvailable(bit))
|
if (virNumaNodeIsAvailable(bit))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
|
"Mock: no numa node set is available at bit %zd", bit);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user