提交 23d9d25e 编写于 作者: T Tomáš Ryšavý 提交者: Michal Privoznik

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: NTomáš Ryšavý <tom.rysavy.0@gmail.com>
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 63f388c9
...@@ -1264,7 +1264,7 @@ testOpenDefault(virConnectPtr conn) ...@@ -1264,7 +1264,7 @@ testOpenDefault(virConnectPtr conn)
/* Numa setup */ /* Numa setup */
privconn->numCells = 2; privconn->numCells = 2;
for (u = 0; u < 2; ++u) { for (u = 0; u < privconn->numCells; ++u) {
privconn->cells[u].numCpus = 8; privconn->cells[u].numCpus = 8;
privconn->cells[u].mem = (u + 1) * 2048 * 1024; privconn->cells[u].mem = (u + 1) * 2048 * 1024;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册