summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-21 17:17:36 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-21 17:17:36 +0100
commit301c69e2c0dbcfd08177eccdd9adc5a9f29f25c1 (patch)
tree355ad662130462d24925769f47551c4317979f83 /tests
parent3afab4c1bb302c3c4e1d0d6579a823565e1909bf (diff)
build-sys: g_type_init() is deprecated since 2.36
Diffstat (limited to 'tests')
-rw-r--r--tests/testdatabase.c4
-rw-r--r--tests/testrecord.c2
-rw-r--r--tests/testsuminfo.c5
3 files changed, 9 insertions, 2 deletions
diff --git a/tests/testdatabase.c b/tests/testdatabase.c
index 9912246..fd27534 100644
--- a/tests/testdatabase.c
+++ b/tests/testdatabase.c
@@ -7468,7 +7468,9 @@ static void test_select_column_names(void)
void main()
{
- g_type_init();
+#if !GLIB_CHECK_VERSION(2,35,1)
+ g_type_init ();
+#endif
test_msidatabase();
test_msiinsert();
diff --git a/tests/testrecord.c b/tests/testrecord.c
index 1542204..39cc275 100644
--- a/tests/testrecord.c
+++ b/tests/testrecord.c
@@ -435,7 +435,9 @@ static void test_fieldzero (void)
void main ()
{
+#if !GLIB_CHECK_VERSION(2,35,1)
g_type_init ();
+#endif
test_msirecord ();
test_MsiRecordGetString ();
diff --git a/tests/testsuminfo.c b/tests/testsuminfo.c
index 80190d5..866ecb1 100644
--- a/tests/testsuminfo.c
+++ b/tests/testsuminfo.c
@@ -373,7 +373,10 @@ static void test_summary_binary(void)
void main()
{
- g_type_init();
+#if !GLIB_CHECK_VERSION(2,35,1)
+ g_type_init ();
+#endif
+
test_suminfo();
test_summary_binary();
}