[PATCH v2 1/2] cld: in tests, call g_thread_init before cld_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: cmccabe <cmccabe@xxxxxxxxxxxxxx>

Signed-off-by: Colin McCabe <cmccabe@xxxxxxxxxxxxxx>

---
 test/it-works.c        |    1 +
 test/load-file-event.c |    1 +
 test/lock-file-event.c |    1 +
 test/save-file-event.c |    1 +
 4 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/test/it-works.c b/test/it-works.c
index bd2f965..0e932e7 100644
--- a/test/it-works.c
+++ b/test/it-works.c
@@ -107,6 +107,7 @@ static int init(void)
 
 int main (int argc, char *argv[])
 {
+	g_thread_init(NULL);
 	cldc_init();
 	event_init();
 	if (init())
diff --git a/test/load-file-event.c b/test/load-file-event.c
index 1620508..23ee4e0 100644
--- a/test/load-file-event.c
+++ b/test/load-file-event.c
@@ -243,6 +243,7 @@ int main(int argc, char *argv[])
 	}
 #endif
 
+	g_thread_init(NULL);
 	cldc_init();
 	event_init();
 #if 0
diff --git a/test/lock-file-event.c b/test/lock-file-event.c
index c69da66..6fc4f1a 100644
--- a/test/lock-file-event.c
+++ b/test/lock-file-event.c
@@ -247,6 +247,7 @@ static int init(void)
 
 int main (int argc, char *argv[])
 {
+	g_thread_init(NULL);
 	cldc_init();
 	event_init();
 	if (init())
diff --git a/test/save-file-event.c b/test/save-file-event.c
index 1b3418a..23f1781 100644
--- a/test/save-file-event.c
+++ b/test/save-file-event.c
@@ -249,6 +249,7 @@ int main(int argc, char *argv[])
 	}
 #endif
 
+	g_thread_init(NULL);
 	cldc_init();
 	event_init();
 #if 0
-- 
1.6.2.5

--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux