[evolution-data-server] test-server-utils: Permit to preserve working directory



commit 82f500ca4e4b8703473493e5f3243e76fd9709f9
Author: Mathias Hasselmann <mathias openismus com>
Date:   Thu Jan 17 00:25:21 2013 +0100

    test-server-utils: Permit to preserve working directory

 tests/test-server-utils/e-test-server-utils.c |    3 ++-
 tests/test-server-utils/e-test-server-utils.h |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-server-utils/e-test-server-utils.c b/tests/test-server-utils/e-test-server-utils.c
index dc6a3cb..6cb03c4 100644
--- a/tests/test-server-utils/e-test-server-utils.c
+++ b/tests/test-server-utils/e-test-server-utils.c
@@ -330,7 +330,8 @@ e_test_server_utils_teardown (ETestServerFixture *fixture,
 #endif
 
 	/* Cleanup work directory */
-	delete_work_directory ();
+	if (!closure->keep_work_directory)
+		delete_work_directory ();
 }
 
 gint
diff --git a/tests/test-server-utils/e-test-server-utils.h b/tests/test-server-utils/e-test-server-utils.h
index 380cf97..b5bf840 100644
--- a/tests/test-server-utils/e-test-server-utils.h
+++ b/tests/test-server-utils/e-test-server-utils.h
@@ -88,6 +88,7 @@ struct _ETestServerClosure {
 	ETestServiceType         type;
 	ETestSourceCustomizeFunc customize;
 	gint                     calendar_source_type;
+	gboolean         keep_work_directory;
 };
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]