aboutsummaryrefslogtreecommitdiff
path: root/tests/e1000-test.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2015-03-25 18:40:15 +0100
committerAndreas Färber <afaerber@suse.de>2015-06-19 10:29:14 +0200
commit53f77e4562f85ccf82c8831a4448e9aefb538837 (patch)
tree2e157291a0aff53457da50305a16f6a6488760b9 /tests/e1000-test.c
parent6bc5cf92c0ab0085ba9a6e0cebcf5a544f416ca7 (diff)
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>
Diffstat (limited to 'tests/e1000-test.c')
-rw-r--r--tests/e1000-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/e1000-test.c b/tests/e1000-test.c
index 81f164d9e9..7ca6d7e72e 100644
--- a/tests/e1000-test.c
+++ b/tests/e1000-test.c
@@ -44,8 +44,8 @@ int main(int argc, char **argv)
for (i = 0; i < ARRAY_SIZE(models); i++) {
char *path;
- path = g_strdup_printf("/%s/e1000/%s", qtest_get_arch(), models[i]);
- g_test_add_data_func(path, models[i], test_device);
+ path = g_strdup_printf("e1000/%s", models[i]);
+ qtest_add_data_func(path, models[i], test_device);
}
return g_test_run();