Signed-off-by: Giuseppe Scrivano <gscrivan@xxxxxxxxxx> --- test/test-db.c | 18 +++++++++--------- test/test-device.c | 12 ++++++------ test/test-devicelist.c | 18 +++++++++--------- test/test-entity.c | 16 ++++++++-------- test/test-filter.c | 12 ++++++------ test/test-install-script.c | 24 ++++++++++++------------ test/test-isodetect.c | 12 ++++++------ test/test-list.c | 26 +++++++++++++------------- test/test-loader.c | 12 ++++++------ test/test-mediauris.c | 18 +++++++++--------- test/test-os.c | 12 ++++++------ test/test-oslist.c | 18 +++++++++--------- test/test-platform.c | 14 +++++++------- test/test-platformlist.c | 18 +++++++++--------- test/test-product.c | 16 ++++++++-------- test/test-productfilter.c | 16 ++++++++-------- test/test-treeuris.c | 18 +++++++++--------- 17 files changed, 140 insertions(+), 140 deletions(-) diff --git a/test/test-db.c b/test/test-db.c index 576f40f..df586f6 100644 --- a/test/test-db.c +++ b/test/test-db.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -304,7 +304,7 @@ START_TEST(test_rel_os) gboolean hasOs5 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(sublist)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(sublist)); i++) { OsinfoOs *ent = OSINFO_OS(osinfo_list_get_nth(OSINFO_LIST(sublist), i)); if (ent == os1) @@ -332,7 +332,7 @@ START_TEST(test_rel_os) sublist = osinfo_db_unique_values_for_os_relationship(db, OSINFO_PRODUCT_RELATIONSHIP_UPGRADES); hasOs1 = hasOs2 = hasOs3 = hasOs4 = hasOs5 = hasBad = FALSE; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(sublist)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(sublist)); i++) { OsinfoOs *ent = OSINFO_OS(osinfo_list_get_nth(OSINFO_LIST(sublist), i)); if (ent == os1) @@ -360,7 +360,7 @@ START_TEST(test_rel_os) sublist = osinfo_db_unique_values_for_os_relationship(db, OSINFO_PRODUCT_RELATIONSHIP_CLONES); hasOs1 = hasOs2 = hasOs3 = hasOs4 = hasOs5 = hasBad = FALSE; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(sublist)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(sublist)); i++) { OsinfoOs *ent = OSINFO_OS(osinfo_list_get_nth(OSINFO_LIST(sublist), i)); if (ent == os1) @@ -419,8 +419,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -438,9 +438,9 @@ int main(void) osinfo_oslist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-device.c b/test/test-device.c index 4b9d3c6..72f8e8c 100644 --- a/test/test-device.c +++ b/test/test-device.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,8 +52,8 @@ device_suite(void) int main(void) { int number_failed; - Suite *s = device_suite (); - SRunner *sr = srunner_create (s); + Suite *s = device_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -62,9 +62,9 @@ int main(void) /* Upfront so we don't confuse valgrind */ osinfo_device_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-devicelist.c b/test/test-devicelist.c index c3aa65f..02f0ff7 100644 --- a/test/test-devicelist.c +++ b/test/test-devicelist.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -53,7 +53,7 @@ START_TEST(test_union) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list3)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list3)); i++) { OsinfoDevice *ent = OSINFO_DEVICE(osinfo_list_get_nth(OSINFO_LIST(list3), i)); if (ent == ent1) has1 = TRUE; @@ -112,7 +112,7 @@ START_TEST(test_intersect) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list3)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list3)); i++) { OsinfoDevice *ent = OSINFO_DEVICE(osinfo_list_get_nth(OSINFO_LIST(list3), i)); if (ent == ent1) has1 = TRUE; @@ -176,7 +176,7 @@ START_TEST(test_filter) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list2)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list2)); i++) { OsinfoDevice *ent = OSINFO_DEVICE(osinfo_list_get_nth(OSINFO_LIST(list2), i)); if (ent == ent1) has1 = TRUE; @@ -221,8 +221,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -233,9 +233,9 @@ int main(void) osinfo_devicelist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-entity.c b/test/test-entity.c index aeee513..03dc570 100644 --- a/test/test-entity.c +++ b/test/test-entity.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,10 +41,10 @@ struct _OsinfoDummyClass GType osinfo_dummy_get_type(void); -G_DEFINE_TYPE (OsinfoDummy, osinfo_dummy, OSINFO_TYPE_ENTITY); +G_DEFINE_TYPE(OsinfoDummy, osinfo_dummy, OSINFO_TYPE_ENTITY); static void osinfo_dummy_class_init(OsinfoDummyClass *klass G_GNUC_UNUSED){} -static void osinfo_dummy_init (OsinfoDummy *self G_GNUC_UNUSED) {} +static void osinfo_dummy_init(OsinfoDummy *self G_GNUC_UNUSED) {} START_TEST(test_id) @@ -332,8 +332,8 @@ entity_suite(void) int main(void) { int number_failed; - Suite *s = entity_suite (); - SRunner *sr = srunner_create (s); + Suite *s = entity_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -342,9 +342,9 @@ int main(void) /* Upfront so we don't confuse valgrind */ osinfo_dummy_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-filter.c b/test/test-filter.c index 1a51370..aa4fb72 100644 --- a/test/test-filter.c +++ b/test/test-filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -169,8 +169,8 @@ filter_suite(void) int main(void) { int number_failed; - Suite *s = filter_suite (); - SRunner *sr = srunner_create (s); + Suite *s = filter_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -180,9 +180,9 @@ int main(void) osinfo_device_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-install-script.c b/test/test-install-script.c index 1068da9..4da3bb4 100644 --- a/test/test-install-script.c +++ b/test/test-install-script.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -107,8 +107,8 @@ START_TEST(test_script_file) "jeos", "file://" SRCDIR "/test/install-script.xsl"); - loop = g_main_loop_new (g_main_context_get_thread_default (), - TRUE); + loop = g_main_loop_new(g_main_context_get_thread_default(), + TRUE); os = osinfo_os_new("http://fedoraproject.org/fedora/16"); osinfo_install_script_generate_async(script, @@ -156,8 +156,8 @@ START_TEST(test_script_data) "jeos", data); - loop = g_main_loop_new (g_main_context_get_thread_default (), - TRUE); + loop = g_main_loop_new(g_main_context_get_thread_default(), + TRUE); osinfo_install_script_generate_async(script, os, @@ -231,8 +231,8 @@ START_TEST(test_script_datamap) OSINFO_PRODUCT_PROP_SHORT_ID, "fedora16"); - loop = g_main_loop_new (g_main_context_get_thread_default (), - TRUE); + loop = g_main_loop_new(g_main_context_get_thread_default(), + TRUE); osinfo_install_script_generate_async(script, os, @@ -274,8 +274,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -293,9 +293,9 @@ int main(void) osinfo_oslist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-isodetect.c b/test/test-isodetect.c index 1b6450e..5bd211a 100644 --- a/test/test-isodetect.c +++ b/test/test-isodetect.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -433,8 +433,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -452,9 +452,9 @@ int main(void) osinfo_oslist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-list.c b/test/test-list.c index bd82183..d9076b8 100644 --- a/test/test-list.c +++ b/test/test-list.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,10 +41,10 @@ struct _OsinfoDummyClass GType osinfo_dummy_get_type(void); -G_DEFINE_TYPE (OsinfoDummy, osinfo_dummy, OSINFO_TYPE_ENTITY); +G_DEFINE_TYPE(OsinfoDummy, osinfo_dummy, OSINFO_TYPE_ENTITY); static void osinfo_dummy_class_init(OsinfoDummyClass *klass G_GNUC_UNUSED){} -static void osinfo_dummy_init (OsinfoDummy *self G_GNUC_UNUSED) {} +static void osinfo_dummy_init(OsinfoDummy *self G_GNUC_UNUSED) {} typedef struct _OsinfoDummyList OsinfoDummyList; @@ -62,10 +62,10 @@ struct _OsinfoDummyListClass GType osinfo_dummy_list_get_type(void); -G_DEFINE_TYPE (OsinfoDummyList, osinfo_dummy_list, OSINFO_TYPE_LIST); +G_DEFINE_TYPE(OsinfoDummyList, osinfo_dummy_list, OSINFO_TYPE_LIST); static void osinfo_dummy_list_class_init(OsinfoDummyListClass *klass G_GNUC_UNUSED){} -static void osinfo_dummy_list_init (OsinfoDummyList *self G_GNUC_UNUSED) {} +static void osinfo_dummy_list_init(OsinfoDummyList *self G_GNUC_UNUSED) {} @@ -134,7 +134,7 @@ START_TEST(test_union) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(list3) ; i++) { + for (i = 0; i < osinfo_list_get_length(list3); i++) { OsinfoEntity *ent = osinfo_list_get_nth(list3, i); if (ent == ent1) has1 = TRUE; @@ -192,7 +192,7 @@ START_TEST(test_intersect) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(list3) ; i++) { + for (i = 0; i < osinfo_list_get_length(list3); i++) { OsinfoEntity *ent = osinfo_list_get_nth(list3, i); if (ent == ent1) has1 = TRUE; @@ -256,7 +256,7 @@ START_TEST(test_filter) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(list2) ; i++) { + for (i = 0; i < osinfo_list_get_length(list2); i++) { OsinfoEntity *ent = osinfo_list_get_nth(list2, i); if (ent == ent1) has1 = TRUE; @@ -381,8 +381,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -393,9 +393,9 @@ int main(void) osinfo_dummy_list_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-loader.c b/test/test-loader.c index 3fe5c26..0f83b49 100644 --- a/test/test-loader.c +++ b/test/test-loader.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,8 +52,8 @@ loader_suite(void) int main(void) { int number_failed; - Suite *s = loader_suite (); - SRunner *sr = srunner_create (s); + Suite *s = loader_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -72,9 +72,9 @@ int main(void) osinfo_filter_get_type(); osinfo_loader_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-mediauris.c b/test/test-mediauris.c index a1b1df2..d66f4a3 100644 --- a/test/test-mediauris.c +++ b/test/test-mediauris.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -77,9 +77,9 @@ START_TEST(test_uris) SoupLogger *logger; int debug_level = atoi(debugstr); - logger = soup_logger_new (debug_level, -1); - soup_session_add_feature (session, SOUP_SESSION_FEATURE (logger)); - g_object_unref (logger); + logger = soup_logger_new(debug_level, -1); + soup_session_add_feature(session, SOUP_SESSION_FEATURE(logger)); + g_object_unref(logger); } fail_unless(OSINFO_IS_LOADER(loader), "Loader is not a LOADER"); @@ -127,8 +127,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); if (!g_getenv("LIBOSINFO_NETWORK_TESTS")) return 77; /* Skip */ @@ -149,9 +149,9 @@ int main(void) osinfo_oslist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-os.c b/test/test-os.c index 6077435..48ad8ac 100644 --- a/test/test-os.c +++ b/test/test-os.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -210,8 +210,8 @@ os_suite(void) int main(void) { int number_failed; - Suite *s = os_suite (); - SRunner *sr = srunner_create (s); + Suite *s = os_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -225,9 +225,9 @@ int main(void) osinfo_devicelist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-oslist.c b/test/test-oslist.c index 2fa97c6..765d546 100644 --- a/test/test-oslist.c +++ b/test/test-oslist.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -53,7 +53,7 @@ START_TEST(test_union) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list3)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list3)); i++) { OsinfoOs *ent = OSINFO_OS(osinfo_list_get_nth(OSINFO_LIST(list3), i)); if (ent == ent1) has1 = TRUE; @@ -112,7 +112,7 @@ START_TEST(test_intersect) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list3)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list3)); i++) { OsinfoOs *ent = OSINFO_OS(osinfo_list_get_nth(OSINFO_LIST(list3), i)); if (ent == ent1) has1 = TRUE; @@ -176,7 +176,7 @@ START_TEST(test_filter) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list2)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list2)); i++) { OsinfoOs *ent = OSINFO_OS(osinfo_list_get_nth(OSINFO_LIST(list2), i)); if (ent == ent1) has1 = TRUE; @@ -221,8 +221,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -233,9 +233,9 @@ int main(void) osinfo_oslist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-platform.c b/test/test-platform.c index 92772a7..6f05b83 100644 --- a/test/test-platform.c +++ b/test/test-platform.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -57,7 +57,7 @@ START_TEST(test_devices) gboolean hasDev2 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(devices)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(devices)); i++) { OsinfoEntity *ent = osinfo_list_get_nth(OSINFO_LIST(devices), i); fail_unless(OSINFO_IS_DEVICE(ent), "entity is a device"); if (OSINFO_DEVICE(ent) == dev1) @@ -128,8 +128,8 @@ platform_suite(void) int main(void) { int number_failed; - Suite *s = platform_suite (); - SRunner *sr = srunner_create (s); + Suite *s = platform_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -141,9 +141,9 @@ int main(void) osinfo_devicelist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-platformlist.c b/test/test-platformlist.c index 4baf4ff..e1b1d13 100644 --- a/test/test-platformlist.c +++ b/test/test-platformlist.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -53,7 +53,7 @@ START_TEST(test_union) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list3)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list3)); i++) { OsinfoPlatform *ent = OSINFO_PLATFORM(osinfo_list_get_nth(OSINFO_LIST(list3), i)); if (ent == ent1) has1 = TRUE; @@ -112,7 +112,7 @@ START_TEST(test_intersect) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list3)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list3)); i++) { OsinfoPlatform *ent = OSINFO_PLATFORM(osinfo_list_get_nth(OSINFO_LIST(list3), i)); if (ent == ent1) has1 = TRUE; @@ -176,7 +176,7 @@ START_TEST(test_filter) gboolean has4 = FALSE; gboolean hasBad = FALSE; int i; - for (i = 0 ; i < osinfo_list_get_length(OSINFO_LIST(list2)) ; i++) { + for (i = 0; i < osinfo_list_get_length(OSINFO_LIST(list2)); i++) { OsinfoPlatform *ent = OSINFO_PLATFORM(osinfo_list_get_nth(OSINFO_LIST(list2), i)); if (ent == ent1) has1 = TRUE; @@ -221,8 +221,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -233,9 +233,9 @@ int main(void) osinfo_platformlist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-product.c b/test/test-product.c index f8f654c..f6b30fa 100644 --- a/test/test-product.c +++ b/test/test-product.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,10 +41,10 @@ struct _OsinfoDummyClass GType osinfo_dummy_get_type(void); -G_DEFINE_TYPE (OsinfoDummy, osinfo_dummy, OSINFO_TYPE_PRODUCT); +G_DEFINE_TYPE(OsinfoDummy, osinfo_dummy, OSINFO_TYPE_PRODUCT); static void osinfo_dummy_class_init(OsinfoDummyClass *klass G_GNUC_UNUSED){} -static void osinfo_dummy_init (OsinfoDummy *self G_GNUC_UNUSED) {} +static void osinfo_dummy_init(OsinfoDummy *self G_GNUC_UNUSED) {} static OsinfoProduct *osinfo_dummy_new(const gchar *id) { return g_object_new(osinfo_dummy_get_type(), "id", id, NULL); @@ -202,8 +202,8 @@ product_suite(void) int main(void) { int number_failed; - Suite *s = product_suite (); - SRunner *sr = srunner_create (s); + Suite *s = product_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -217,9 +217,9 @@ int main(void) osinfo_devicelist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-productfilter.c b/test/test-productfilter.c index f05ce67..57d6fc4 100644 --- a/test/test-productfilter.c +++ b/test/test-productfilter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,10 +41,10 @@ struct _OsinfoDummyClass GType osinfo_dummy_get_type(void); -G_DEFINE_TYPE (OsinfoDummy, osinfo_dummy, OSINFO_TYPE_PRODUCT); +G_DEFINE_TYPE(OsinfoDummy, osinfo_dummy, OSINFO_TYPE_PRODUCT); static void osinfo_dummy_class_init(OsinfoDummyClass *klass G_GNUC_UNUSED){} -static void osinfo_dummy_init (OsinfoDummy *self G_GNUC_UNUSED) {} +static void osinfo_dummy_init(OsinfoDummy *self G_GNUC_UNUSED) {} static OsinfoProduct *osinfo_dummy_new(const gchar *id) { return g_object_new(osinfo_dummy_get_type(), "id", id, NULL); @@ -240,8 +240,8 @@ productfilter_suite(void) int main(void) { int number_failed; - Suite *s = productfilter_suite (); - SRunner *sr = srunner_create (s); + Suite *s = productfilter_suite(); + SRunner *sr = srunner_create(s); #if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); @@ -255,9 +255,9 @@ int main(void) osinfo_productfilter_get_type(); osinfo_product_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test-treeuris.c b/test/test-treeuris.c index ff0de9e..da0dee4 100644 --- a/test/test-treeuris.c +++ b/test/test-treeuris.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Red Hat, Inc. + * Copyright (C) 2009-2012, 2014 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -77,9 +77,9 @@ START_TEST(test_uris) SoupLogger *logger; int debug_level = atoi(debugstr); - logger = soup_logger_new (debug_level, -1); - soup_session_add_feature (session, SOUP_SESSION_FEATURE (logger)); - g_object_unref (logger); + logger = soup_logger_new(debug_level, -1); + soup_session_add_feature(session, SOUP_SESSION_FEATURE(logger)); + g_object_unref(logger); } fail_unless(OSINFO_IS_LOADER(loader), "Loader is not a LOADER"); @@ -127,8 +127,8 @@ list_suite(void) int main(void) { int number_failed; - Suite *s = list_suite (); - SRunner *sr = srunner_create (s); + Suite *s = list_suite(); + SRunner *sr = srunner_create(s); if (!g_getenv("LIBOSINFO_NETWORK_TESTS")) return 77; /* Skip */ @@ -149,9 +149,9 @@ int main(void) osinfo_oslist_get_type(); osinfo_filter_get_type(); - srunner_run_all (sr, CK_ENV); - number_failed = srunner_ntests_failed (sr); - srunner_free (sr); + srunner_run_all(sr, CK_ENV); + number_failed = srunner_ntests_failed(sr); + srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } -- 1.9.3 _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo