[gimp] app: Call gimp_exit() in tests to avoid warnings about broken pipes
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Call gimp_exit() in tests to avoid warnings about broken pipes
- Date: Wed, 16 Sep 2009 23:54:01 +0000 (UTC)
commit fb549cdabff67a70055147952e89cdc157bd262c
Author: Martin Nordholts <martinn src gnome org>
Date: Wed Sep 16 17:58:53 2009 +0200
app: Call gimp_exit() in tests to avoid warnings about broken pipes
app/tests/test-window-management.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/app/tests/test-window-management.c b/app/tests/test-window-management.c
index 0d7ba5d..fdbb2b9 100644
--- a/app/tests/test-window-management.c
+++ b/app/tests/test-window-management.c
@@ -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;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]