diff options
author | Andreas Färber <afaerber@suse.de> | 2015-03-25 18:40:15 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-06-19 10:29:14 +0200 |
commit | 53f77e4562f85ccf82c8831a4448e9aefb538837 (patch) | |
tree | 2e157291a0aff53457da50305a16f6a6488760b9 /tests/endianness-test.c | |
parent | 6bc5cf92c0ab0085ba9a6e0cebcf5a544f416ca7 (diff) | |
download | qemu-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.c | 18 |
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(); |