Re: [Qemu-devel] [PULL 03/12] test-qdev-global-props: Run tests on subprocess

2014-09-18 Thread Michael Roth
Quoting Eduardo Habkost (2014-09-18 12:27:12) > On Thu, Sep 18, 2014 at 11:29:47AM -0500, Michael Roth wrote: > > Quoting Michael S. Tsirkin (2014-09-14 13:41:23) > > > From: Eduardo Habkost > > > > > > There are multiple reasons for running the global property tests on a > > > subprocess: > > >

Re: [Qemu-devel] [PULL 03/12] test-qdev-global-props: Run tests on subprocess

2014-09-18 Thread Michael S. Tsirkin
On Thu, Sep 18, 2014 at 07:06:16PM +0200, Paolo Bonzini wrote: > Il 18/09/2014 18:29, Michael Roth ha scritto: > > > > > >> > int main(int argc, char **argv) > >> > { > >> > g_test_init(&argc, &argv, NULL); > >> > @@ -174,9 +200,20 @@ int main(int argc, char **argv) > >> > type_regist

Re: [Qemu-devel] [PULL 03/12] test-qdev-global-props: Run tests on subprocess

2014-09-18 Thread Eduardo Habkost
On Thu, Sep 18, 2014 at 11:29:47AM -0500, Michael Roth wrote: > Quoting Michael S. Tsirkin (2014-09-14 13:41:23) > > From: Eduardo Habkost > > > > There are multiple reasons for running the global property tests on a > > subprocess: > > > > * We need the global_props lists to be empty for each t

Re: [Qemu-devel] [PULL 03/12] test-qdev-global-props: Run tests on subprocess

2014-09-18 Thread Paolo Bonzini
Il 18/09/2014 18:29, Michael Roth ha scritto: > > >> > int main(int argc, char **argv) >> > { >> > g_test_init(&argc, &argv, NULL); >> > @@ -174,9 +200,20 @@ int main(int argc, char **argv) >> > type_register_static(&static_prop_type); >> > type_register_static(&dynamic_prop_type

Re: [Qemu-devel] [PULL 03/12] test-qdev-global-props: Run tests on subprocess

2014-09-18 Thread Michael Roth
Quoting Michael S. Tsirkin (2014-09-14 13:41:23) > From: Eduardo Habkost > > 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 n

[Qemu-devel] [PULL 03/12] test-qdev-global-props: Run tests on subprocess

2014-09-14 Thread Michael S. Tsirkin
From: Eduardo Habkost 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