mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
tests: Use qtest_add_data_func() consistently
Replace uses of g_test_add_data_func() for QTest test cases. It is still valid to use it for any non-QTest test cases, which are not run for multiple target binaries. Suggested-by: John Snow <jsnow@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
6bc5cf92c0
commit
53f77e4562
6 changed files with 23 additions and 30 deletions
|
@ -128,8 +128,8 @@ static void add_machine_test_cases(void)
|
|||
g_assert(qstr);
|
||||
mname = qstring_get_str(qstr);
|
||||
if (!is_blacklisted(arch, mname)) {
|
||||
path = g_strdup_printf("/%s/qom/%s", arch, mname);
|
||||
g_test_add_data_func(path, mname, test_machine);
|
||||
path = g_strdup_printf("qom/%s", mname);
|
||||
qtest_add_data_func(path, mname, test_machine);
|
||||
}
|
||||
}
|
||||
qtest_end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue