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:
Tomáš Ryšavý 2016-09-15 10:27:03 +02:00 committed by Michal Privoznik
parent 63f388c99d
commit 23d9d25e97

View File

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