tests/unit/test-smp-parse: Pass machine type as argument to tests
commit1ab192f30caeb7dd409fa82164ffa0df5e984a70
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 15 Nov 2021 11:32:09 +0000 (15 12:32 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 31 Dec 2021 12:29:25 +0000 (31 13:29 +0100)
treec87ce88e323d42efb36fa96ab5d14cc05d5c006a
parent2ebd9ce19a324aa627c3f9b8f40285a1cf9bb0c9
tests/unit/test-smp-parse: Pass machine type as argument to tests

Use g_test_add_data_func() instead of g_test_add_func() so we can
pass the machine type to the tests (we will soon have different
machine types).

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