mirror of https://github.com/GNOME/gimp.git
app/tests: Prepare test-core.c for other tests
This commit is contained in:
parent
a09d428c7e
commit
81925e424b
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue