tests: functional tests for QMP command set-numa-node

* start QEMU with 2 unmapped cpus,
 * while in preconfig state
    * add 2 numa nodes
    * assign cpus to them
 * exit preconfig and in running state check that cpus
   are mapped correctly.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1526556607-268163-1-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
Igor Mammedov 2018-05-17 13:30:07 +02:00 committed by Eduardo Habkost
parent f3be67812c
commit c35665e1ee
4 changed files with 77 additions and 7 deletions

View file

@ -392,13 +392,6 @@ static void add_query_tests(QmpSchema *schema)
}
}
static bool qmp_rsp_is_err(QDict *rsp)
{
QDict *error = qdict_get_qdict(rsp, "error");
qobject_unref(rsp);
return !!error;
}
static void test_qmp_preconfig(void)
{
QDict *rsp, *ret;