]> git.proxmox.com Git - mirror_qemu.git/commit
test-qdev-global-props: Run tests on subprocess
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 8 Aug 2014 19:03:27 +0000 (16:03 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 18 Sep 2014 18:51:24 +0000 (21:51 +0300)
commit2177801a4899bf29108b3d471417a5b4d701ec29
treec2e897da5bc97a618df17247c1b24d40716c769e
parent9d41401b90fa10b335d2e739149d36437cfbf622
test-qdev-global-props: Run tests on subprocess

There are multiple reasons for running the global property tests on a
subprocess:

* We need the global_props lists to be empty for each test case, so
  global properties from the previous test won't affect the next one;
* We don't want the qdev_prop_check_global() warnings to pollute test
  output;
* With a subprocess, we can ensure qdev_prop_check_global() is printing
  the warning messages it should.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/test-qdev-global-props.c