On 11/11/21 11:03 AM, Philippe Mathieu-Daudé wrote:
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.

Signed-off-by: Philippe Mathieu-Daudé<phi...@redhat.com>
---
  tests/unit/test-smp-parse.c | 25 ++++++++++++-------------
  1 file changed, 12 insertions(+), 13 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to