aboutsummaryrefslogtreecommitdiff
path: root/tests/endianness-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/endianness-test.c
parent6bc5cf92c0ab0085ba9a6e0cebcf5a544f416ca7 (diff)
downloadqemu-53f77e4562f85ccf82c8831a4448e9aefb538837.zip
qemu-53f77e4562f85ccf82c8831a4448e9aefb538837.tar.gz
qemu-53f77e4562f85ccf82c8831a4448e9aefb538837.tar.bz2
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/endianness-test.c')
-rw-r--r--tests/endianness-test.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/endianness-test.c b/tests/endianness-test.c
index 26ee734..2054338 100644
--- a/tests/endianness-test.c
+++ b/tests/endianness-test.c
@@ -296,17 +296,17 @@ int main(int argc, char **argv)
if (strcmp(test_cases[i].arch, arch) != 0) {
continue;
}
- path = g_strdup_printf("/%s/endianness/%s",
- arch, test_cases[i].machine);
- g_test_add_data_func(path, &test_cases[i], test_endianness);
+ path = g_strdup_printf("endianness/%s",
+ test_cases[i].machine);
+ qtest_add_data_func(path, &test_cases[i], test_endianness);
- path = g_strdup_printf("/%s/endianness/split/%s",
- arch, test_cases[i].machine);
- g_test_add_data_func(path, &test_cases[i], test_endianness_split);
+ path = g_strdup_printf("endianness/split/%s",
+ test_cases[i].machine);
+ qtest_add_data_func(path, &test_cases[i], test_endianness_split);
- path = g_strdup_printf("/%s/endianness/combine/%s",
- arch, test_cases[i].machine);
- g_test_add_data_func(path, &test_cases[i], test_endianness_combine);
+ path = g_strdup_printf("endianness/combine/%s",
+ test_cases[i].machine);
+ qtest_add_data_func(path, &test_cases[i], test_endianness_combine);
}
ret = g_test_run();