[gimp] app/tests: Don't exit before test-xcf.c tests are run



commit 82c52974e23ecdbf9b69469b887035c4753311bd
Author: Martin Nordholts <martinn src gnome org>
Date:   Sun Feb 28 23:22:26 2010 +0100

    app/tests: Don't exit before test-xcf.c tests are run

 app/tests/test-xcf.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/tests/test-xcf.c b/app/tests/test-xcf.c
index 5f70c40..627731b 100644
--- a/app/tests/test-xcf.c
+++ b/app/tests/test-xcf.c
@@ -871,6 +871,8 @@ int
 main (int    argc,
       char **argv)
 {
+  int result;
+
   g_type_init ();
   gtk_init (&argc, &argv);
   g_test_init (&argc, &argv, NULL);
@@ -913,9 +915,11 @@ main (int    argc,
   gimp_test_utils_set_gimp2_directory ("GIMP_TESTING_ABS_TOP_BUILDDIR",
                                        "app/tests/gimpdir-output");
 
+  /* Run the tests */
+  result = g_test_run ();
+
   /* Exit so we don't break script-fu plug-in wire */
   gimp_exit (gimp, TRUE);
 
-  /* Run the tests and return status */
-  return g_test_run ();
+  return result;
 }



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