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



commit 81925e424bf8efb998ea74105ce682e89525b96b
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]