diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-01-21 14:15:41 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-01-21 14:15:41 +0100 |
commit | a4c5ea5d18469c81cd5c9229b0f1a43752d72fc8 (patch) | |
tree | 7f1c65b56cd5730d48461f55e16e43f3567d761e /test | |
parent | d708b88c6019368b4e1aa9576d9452e9624f1239 (diff) |
build-sys: g_type_init() is deprecated in 2.36
Diffstat (limited to 'test')
-rw-r--r-- | test/test-db.c | 2 | ||||
-rw-r--r-- | test/test-device.c | 2 | ||||
-rw-r--r-- | test/test-devicelist.c | 2 | ||||
-rw-r--r-- | test/test-entity.c | 2 | ||||
-rw-r--r-- | test/test-filter.c | 2 | ||||
-rw-r--r-- | test/test-install-script.c | 2 | ||||
-rw-r--r-- | test/test-isodetect.c | 2 | ||||
-rw-r--r-- | test/test-list.c | 2 | ||||
-rw-r--r-- | test/test-loader.c | 2 | ||||
-rw-r--r-- | test/test-mediauris.c | 2 | ||||
-rw-r--r-- | test/test-os.c | 2 | ||||
-rw-r--r-- | test/test-oslist.c | 2 | ||||
-rw-r--r-- | test/test-platform.c | 2 | ||||
-rw-r--r-- | test/test-platformlist.c | 2 | ||||
-rw-r--r-- | test/test-product.c | 2 | ||||
-rw-r--r-- | test/test-productfilter.c | 2 | ||||
-rw-r--r-- | test/test-treeuris.c | 2 |
17 files changed, 34 insertions, 0 deletions
diff --git a/test/test-db.c b/test/test-db.c index 50e29fe..576f40f 100644 --- a/test/test-db.c +++ b/test/test-db.c @@ -422,7 +422,9 @@ int main(void) Suite *s = list_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_entity_get_type(); diff --git a/test/test-device.c b/test/test-device.c index 4612d27..4b9d3c6 100644 --- a/test/test-device.c +++ b/test/test-device.c @@ -55,7 +55,9 @@ int main(void) Suite *s = device_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_device_get_type(); diff --git a/test/test-devicelist.c b/test/test-devicelist.c index 1fd001a..c3aa65f 100644 --- a/test/test-devicelist.c +++ b/test/test-devicelist.c @@ -224,7 +224,9 @@ int main(void) Suite *s = list_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_device_get_type(); diff --git a/test/test-entity.c b/test/test-entity.c index 199307b..aeee513 100644 --- a/test/test-entity.c +++ b/test/test-entity.c @@ -335,7 +335,9 @@ int main(void) Suite *s = entity_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_dummy_get_type(); diff --git a/test/test-filter.c b/test/test-filter.c index c6fbf4b..1a51370 100644 --- a/test/test-filter.c +++ b/test/test-filter.c @@ -172,7 +172,9 @@ int main(void) Suite *s = filter_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_device_get_type(); diff --git a/test/test-install-script.c b/test/test-install-script.c index 4a3f16a..1068da9 100644 --- a/test/test-install-script.c +++ b/test/test-install-script.c @@ -277,7 +277,9 @@ int main(void) Suite *s = list_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_entity_get_type(); diff --git a/test/test-isodetect.c b/test/test-isodetect.c index a3460ff..efbc56a 100644 --- a/test/test-isodetect.c +++ b/test/test-isodetect.c @@ -403,7 +403,9 @@ int main(void) Suite *s = list_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_entity_get_type(); diff --git a/test/test-list.c b/test/test-list.c index 0656799..bd82183 100644 --- a/test/test-list.c +++ b/test/test-list.c @@ -384,7 +384,9 @@ int main(void) Suite *s = list_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_dummy_get_type(); diff --git a/test/test-loader.c b/test/test-loader.c index 7755600..3fe5c26 100644 --- a/test/test-loader.c +++ b/test/test-loader.c @@ -55,7 +55,9 @@ int main(void) Suite *s = loader_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_entity_get_type(); diff --git a/test/test-mediauris.c b/test/test-mediauris.c index 85a2239..191e8c6 100644 --- a/test/test-mediauris.c +++ b/test/test-mediauris.c @@ -134,7 +134,9 @@ int main(void) if (!getenv("LIBOSINFO_NETWORK_TESTS")) return 77; /* Skip */ +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_entity_get_type(); diff --git a/test/test-os.c b/test/test-os.c index ecec8f5..8ea86df 100644 --- a/test/test-os.c +++ b/test/test-os.c @@ -143,7 +143,9 @@ int main(void) Suite *s = os_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_platform_get_type(); diff --git a/test/test-oslist.c b/test/test-oslist.c index c3d114c..2fa97c6 100644 --- a/test/test-oslist.c +++ b/test/test-oslist.c @@ -224,7 +224,9 @@ int main(void) Suite *s = list_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_os_get_type(); diff --git a/test/test-platform.c b/test/test-platform.c index 97c4c8b..92772a7 100644 --- a/test/test-platform.c +++ b/test/test-platform.c @@ -131,7 +131,9 @@ int main(void) Suite *s = platform_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_platform_get_type(); diff --git a/test/test-platformlist.c b/test/test-platformlist.c index d191480..4baf4ff 100644 --- a/test/test-platformlist.c +++ b/test/test-platformlist.c @@ -224,7 +224,9 @@ int main(void) Suite *s = list_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_platform_get_type(); diff --git a/test/test-product.c b/test/test-product.c index 412b6e1..f8f654c 100644 --- a/test/test-product.c +++ b/test/test-product.c @@ -205,7 +205,9 @@ int main(void) Suite *s = product_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_platform_get_type(); diff --git a/test/test-productfilter.c b/test/test-productfilter.c index 7c9ce47..f05ce67 100644 --- a/test/test-productfilter.c +++ b/test/test-productfilter.c @@ -243,7 +243,9 @@ int main(void) Suite *s = productfilter_suite (); SRunner *sr = srunner_create (s); +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_entity_get_type(); diff --git a/test/test-treeuris.c b/test/test-treeuris.c index 584cda8..07f14bf 100644 --- a/test/test-treeuris.c +++ b/test/test-treeuris.c @@ -134,7 +134,9 @@ int main(void) if (!getenv("LIBOSINFO_NETWORK_TESTS")) return 77; /* Skip */ +#if !GLIB_CHECK_VERSION(2,35,1) g_type_init(); +#endif /* Upfront so we don't confuse valgrind */ osinfo_entity_get_type(); |