app: Call gimp_exit() in tests to avoid warnings about broken pipes

This commit is contained in:
Martin Nordholts
2009-09-16 17:58:53 +02:00
parent 9bf17abd75
commit fb549cdabf

View File

@ -45,6 +45,8 @@ static Gimp *gimp = NULL;
int main(int argc, char **argv)
{
int test_result;
g_type_init ();
gtk_init (&argc, &argv);
g_test_init (&argc, &argv, NULL);
@ -61,7 +63,12 @@ int main(int argc, char **argv)
NULL);
/* Run the tests and return status */
return g_test_run ();
test_result = g_test_run ();
/* Exit somewhat properly to avoid annoying warnings */
gimp_exit (gimp, TRUE);
return test_result;
}
/**