]> git.proxmox.com Git - mirror_qemu.git/commit - tests/i440fx-test.c
i440fx-test: give each GTest case its own qtest
authorLaszlo Ersek <lersek@redhat.com>
Fri, 29 Nov 2013 17:12:20 +0000 (18:12 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Dec 2013 11:12:34 +0000 (13:12 +0200)
commitc37805b6724e5d4c3ad41653630b72b43619474e
tree9ebf6517aca8fefc65f7ecffb49088a7ebd90a5f
parentb817e3fb5401bfab49e3c212e6daa1ff1f5a4c9a
i440fx-test: give each GTest case its own qtest

The current two GTest cases, /i440fx/defaults and /i440fx/pam can share a
qemu process, but the next two cases will need dedicated instances. It is
messy (and order-dependent) to dynamically configure GTest cases one by
one to start, stop, or keep the current qtest (*); let's just have each
GTest work with its own qtest. The performance difference should be
negligible.

(*) As g_test_run() can be invoked at most once per process startup, and
it runs GTest cases in sequence, we'd need clumsy data structures to
control each GTest case to start/stop/keep the qemu instance. Or, we'd
have to code the same information into the test methods themselves, which
would make them even more order-dependent.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/i440fx-test.c