[gimp/soc-2010-cage] app/tests: Prepare test-core.c for other tests



commit e91564abf2251c113e594e5046c73c5d8c7c39f0
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Jun 29 18:45:52 2010 +0200

    app/tests: Prepare test-core.c for other tests

 app/tests/test-core.c |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/app/tests/test-core.c b/app/tests/test-core.c
index 25ed860..beba7e5 100644
--- a/app/tests/test-core.c
+++ b/app/tests/test-core.c
@@ -30,7 +30,7 @@
 
 #define GIMP_TEST_IMAGE_SIZE 100
 
-#define ADD_TEST(function) \
+#define ADD_IMAGE_TEST(function) \
   g_test_add ("/gimp-core/" #function, \
               GimpTestFixture, \
               gimp, \
@@ -38,6 +38,14 @@
               function, \
               gimp_test_image_teardown);
 
+#define ADD_TEST(function) \
+  g_test_add ("/gimp-core/" #function, \
+              GimpTestFixture, \
+              gimp, \
+              NULL, \
+              function, \
+              NULL);
+
 
 typedef struct
 {
@@ -181,8 +189,8 @@ main (int    argc,
   gimp = gimp_init_for_testing (TRUE);
 
   /* Add tests */
-  ADD_TEST (add_layer);
-  ADD_TEST (remove_layer);
+  ADD_IMAGE_TEST (add_layer);
+  ADD_IMAGE_TEST (remove_layer);
 
   /* Run the tests and return status */
   return g_test_run ();



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