[libgda] Don't use g_type_init() if not necessary
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Don't use g_type_init() if not necessary
- Date: Wed, 21 Aug 2013 15:35:50 +0000 (UTC)
commit 2b879d1f7f623f4ead35da4dc28fc530a7e07521
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Aug 21 17:21:23 2013 +0200
Don't use g_type_init() if not necessary
tests/multi-threading/check_cnc_lock.c | 3 +++
tests/multi-threading/check_mutex.c | 3 +++
tests/test-connection-string-split.c | 3 +++
tests/value-holders/check_holder.c | 3 +++
tests/value-holders/check_set.c | 3 +++
tests/value-holders/check_statement.c | 3 +++
6 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/tests/multi-threading/check_cnc_lock.c b/tests/multi-threading/check_cnc_lock.c
index dd76c92..d3567b0 100644
--- a/tests/multi-threading/check_cnc_lock.c
+++ b/tests/multi-threading/check_cnc_lock.c
@@ -44,7 +44,10 @@ main (int argc, char** argv)
gchar *fname;
GError *error = NULL;
+#if GLIB_CHECK_VERSION(2,36,0)
+#else
g_type_init ();
+#endif
gda_init ();
/* set up the test database */
diff --git a/tests/multi-threading/check_mutex.c b/tests/multi-threading/check_mutex.c
index 9225fd7..aad249e 100644
--- a/tests/multi-threading/check_mutex.c
+++ b/tests/multi-threading/check_mutex.c
@@ -42,7 +42,10 @@ TestFunc tests[] = {
int
main (int argc, char** argv)
{
+#if GLIB_CHECK_VERSION(2,36,0)
+#else
g_type_init ();
+#endif
gda_init ();
gint failures = 0;
diff --git a/tests/test-connection-string-split.c b/tests/test-connection-string-split.c
index 5831652..db83be5 100644
--- a/tests/test-connection-string-split.c
+++ b/tests/test-connection-string-split.c
@@ -75,7 +75,10 @@ ATest the_tests[] = {
int
main (int argc, char *argv[])
{
+#if GLIB_CHECK_VERSION(2,36,0)
+#else
g_type_init();
+#endif
gda_init ();
guint i;
diff --git a/tests/value-holders/check_holder.c b/tests/value-holders/check_holder.c
index 01cd265..62c1157 100644
--- a/tests/value-holders/check_holder.c
+++ b/tests/value-holders/check_holder.c
@@ -72,7 +72,10 @@ TestFunc tests[] = {
int
main (int argc, char** argv)
{
+#if GLIB_CHECK_VERSION(2,36,0)
+#else
g_type_init ();
+#endif
gda_init ();
guint failures = 0;
diff --git a/tests/value-holders/check_set.c b/tests/value-holders/check_set.c
index 4650c1d..ec73f53 100644
--- a/tests/value-holders/check_set.c
+++ b/tests/value-holders/check_set.c
@@ -58,7 +58,10 @@ TestFunc tests[] = {
int
main (int argc, char** argv)
{
+#if GLIB_CHECK_VERSION(2,36,0)
+#else
g_type_init ();
+#endif
gda_init ();
guint failures = 0;
diff --git a/tests/value-holders/check_statement.c b/tests/value-holders/check_statement.c
index b4866c3..598ba9b 100644
--- a/tests/value-holders/check_statement.c
+++ b/tests/value-holders/check_statement.c
@@ -40,7 +40,10 @@ TestFunc tests[] = {
int
main (int argc, char** argv)
{
+#if GLIB_CHECK_VERSION(2,36,0)
+#else
g_type_init ();
+#endif
gda_init ();
guint failures = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]