From 81925e424bf8efb998ea74105ce682e89525b96b Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Tue, 29 Jun 2010 18:45:52 +0200 Subject: [PATCH] app/tests: Prepare test-core.c for other tests --- app/tests/test-core.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/tests/test-core.c b/app/tests/test-core.c index 25ed860d7b..beba7e5bab 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 ();