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

This commit is contained in:
Martin Nordholts 2010-06-29 18:45:52 +02:00
parent a09d428c7e
commit 81925e424b
1 changed files with 11 additions and 3 deletions

View File

@ -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 ();