From 13392e50c61ce3f3d7d04b59677380f935cf3d3c Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 16 Dec 2014 12:37:53 +0100 Subject: Revert "Drop support for glib < 2.36" This reverts commit 495f56659d607938db00e34c9f84bac24013d999. --- tests/document-input-stream.c | 3 +++ tests/document-loader.c | 3 +++ tests/document-output-stream.c | 3 +++ tests/document-saver.c | 3 +++ tests/smart-converter.c | 3 +++ 5 files changed, 15 insertions(+) (limited to 'tests') diff --git a/tests/document-input-stream.c b/tests/document-input-stream.c index 2da42d9b..930912e6 100644 --- a/tests/document-input-stream.c +++ b/tests/document-input-stream.c @@ -140,6 +140,9 @@ test_consecutive_multibyte_big_read () int main (int argc, char *argv[]) { +#if !GLIB_CHECK_VERSION (2, 36, 0) + g_type_init (); +#endif g_test_init (&argc, &argv, NULL); g_test_add_func ("/document-input-stream/empty", test_empty); diff --git a/tests/document-loader.c b/tests/document-loader.c index 25721bac..a3e6a57b 100644 --- a/tests/document-loader.c +++ b/tests/document-loader.c @@ -238,6 +238,9 @@ test_begin_new_line_detection () int main (int argc, char *argv[]) { +#if !GLIB_CHECK_VERSION (2, 36, 0) + g_type_init (); +#endif g_test_init (&argc, &argv, NULL); pluma_prefs_manager_app_init (); diff --git a/tests/document-output-stream.c b/tests/document-output-stream.c index 8c9f6de4..b6a474e2 100644 --- a/tests/document-output-stream.c +++ b/tests/document-output-stream.c @@ -119,6 +119,9 @@ test_big_char () int main (int argc, char *argv[]) { +#if !GLIB_CHECK_VERSION (2, 36, 0) + g_type_init (); +#endif g_test_init (&argc, &argv, NULL); pluma_prefs_manager_app_init (); diff --git a/tests/document-saver.c b/tests/document-saver.c index 455ef656..707e0984 100644 --- a/tests/document-saver.c +++ b/tests/document-saver.c @@ -687,6 +687,9 @@ int main (int argc, gboolean have_unowned; gboolean have_unowned_group; +#if !GLIB_CHECK_VERSION (2, 36, 0) + g_type_init (); +#endif g_test_init (&argc, &argv, NULL); pluma_prefs_manager_app_init (); diff --git a/tests/smart-converter.c b/tests/smart-converter.c index 58403abf..4f22c68c 100644 --- a/tests/smart-converter.c +++ b/tests/smart-converter.c @@ -341,6 +341,9 @@ test_guessed () int main (int argc, char *argv[]) { +#if !GLIB_CHECK_VERSION (2, 36, 0) + g_type_init (); +#endif g_test_init (&argc, &argv, NULL); g_test_add_func ("/smart-converter/utf8-utf8", test_utf8_utf8); -- cgit v1.2.1