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

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