mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13: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
|
@ -54,9 +54,8 @@ int main(int argc, char **argv)
|
|||
for (i = 0; i < ARRAY_SIZE(models); i++) {
|
||||
char *path;
|
||||
|
||||
path = g_strdup_printf("/%s/eepro100/%s",
|
||||
qtest_get_arch(), models[i]);
|
||||
g_test_add_data_func(path, models[i], test_device);
|
||||
path = g_strdup_printf("eepro100/%s", models[i]);
|
||||
qtest_add_data_func(path, models[i], test_device);
|
||||
}
|
||||
|
||||
return g_test_run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue