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:
Andreas Färber 2015-03-25 18:40:15 +01:00
parent 6bc5cf92c0
commit 53f77e4562
6 changed files with 23 additions and 30 deletions

View file

@ -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();