[gimp] app/tests: Don't depend on UI in test-xcf.c



commit 8140df304a80bf888367a51f3b4ea81551ffaefd
Author: Martin Nordholts <martinn src gnome org>
Date:   Thu Oct 21 21:11:27 2010 +0200

    app/tests: Don't depend on UI in test-xcf.c

 app/tests/test-xcf.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/tests/test-xcf.c b/app/tests/test-xcf.c
index 55db0bf..13c18cb 100644
--- a/app/tests/test-xcf.c
+++ b/app/tests/test-xcf.c
@@ -968,8 +968,9 @@ main (int    argc,
 {
   int result;
 
-  gimp_test_bail_if_no_display ();
-  gtk_test_init (&argc, &argv, NULL);
+  g_thread_init (NULL);
+  g_type_init ();
+  g_test_init (&argc, &argv, NULL);
 
   gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_SRCDIR",
                                        "app/tests/gimpdir");
@@ -977,7 +978,7 @@ main (int    argc,
   /* We share the same application instance across all tests. We need
    * the GUI variant for the file procs
    */
-  gimp = gimp_init_for_gui_testing (FALSE /*show_gui*/);
+  gimp = gimp_init_for_testing ();
 
   /* Add tests */
   ADD_TEST (write_and_read_gimp_2_6_format);



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