tests/unit/test-smp-parse: QOM'ify smp_machine_class_init()
commitc3440eff4c0b6ec7adf391620393cb9755eab8d9
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 11 Nov 2021 08:20:22 +0000 (11 09:20 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 15 Nov 2021 20:49:16 +0000 (15 21:49 +0100)
tree170ef0b4ad6e92d8ecee002d9dc955869b239fae
parent2523a7956519cc13c92b9214d188cd2489d4df2e
tests/unit/test-smp-parse: QOM'ify smp_machine_class_init()

smp_machine_class_init() is the actual TypeInfo::class_init().
Declare it as such in smp_machine_info, and avoid to call it
manually in each test. Move smp_machine_info definition just
before we register the type to avoid a forward declaration.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Yanan Wang <wangyanan55@huawei.com>
Tested-by: Yanan Wang <wangyanan55@huawei.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211115145900.2531865-3-philmd@redhat.com>
tests/unit/test-smp-parse.c