mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
test_driver: Replace magic constant
In testOpenDefault we create a virtual computer that is later presented to user. We also pretend to have NUMA cells and initialize them somehow. But whilst doing so a magical constant is used. Drop it. Signed-off-by: Tomáš Ryšavý <tom.rysavy.0@gmail.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
63f388c99d
commit
23d9d25e97
@ -1264,7 +1264,7 @@ testOpenDefault(virConnectPtr conn)
|
||||
|
||||
/* Numa setup */
|
||||
privconn->numCells = 2;
|
||||
for (u = 0; u < 2; ++u) {
|
||||
for (u = 0; u < privconn->numCells; ++u) {
|
||||
privconn->cells[u].numCpus = 8;
|
||||
privconn->cells[u].mem = (u + 1) * 2048 * 1024;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user