[gnome-builder] tests: tests require that gtk_init() is called
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] tests: tests require that gtk_init() is called
- Date: Fri, 10 Apr 2015 01:19:38 +0000 (UTC)
commit 25a9553dd13d5329cdea473d84b39880ffa14199
Author: Christian Hergert <christian hergert me>
Date: Thu Apr 9 18:19:33 2015 -0700
tests: tests require that gtk_init() is called
Now that we have GtkRecentManager in our context pipeline, we need to
ensure that gtk+ is initialized in our tests.
tests/test-ide-back-forward-list.c | 1 +
tests/test-ide-context.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-ide-back-forward-list.c b/tests/test-ide-back-forward-list.c
index 469bcb1..09a985e 100644
--- a/tests/test-ide-back-forward-list.c
+++ b/tests/test-ide-back-forward-list.c
@@ -172,6 +172,7 @@ gint
main (gint argc,
gchar *argv[])
{
+ gtk_init (&argc, &argv);
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/Ide/BackForwardList/basic", test_basic);
return g_test_run ();
diff --git a/tests/test-ide-context.c b/tests/test-ide-context.c
index fdd96df..98044b0 100644
--- a/tests/test-ide-context.c
+++ b/tests/test-ide-context.c
@@ -83,6 +83,7 @@ gint
main (gint argc,
gchar *argv[])
{
+ gtk_init (&argc, &argv);
g_test_init (&argc, &argv, NULL);
g_irepository_require_private (g_irepository_get_default (),
BUILDDIR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]