[gimp] app: Don't use the gimpdir for WM tests



commit dc51d8167140e3356da9cfcbf1c3780e3f57fbfc
Author: Martin Nordholts <martinn src gnome org>
Date:   Thu Sep 17 00:16:42 2009 +0200

    app: Don't use the gimpdir for WM tests
    
    The WM tests mess up the GIMP dir, in particular any sessionrc if it
    exists, due to the interface never being shown. Make the WM test use a
    tmp dir to avoid that.

 app/tests/test-window-management.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/tests/test-window-management.c b/app/tests/test-window-management.c
index 6ef7373..c526502 100644
--- a/app/tests/test-window-management.c
+++ b/app/tests/test-window-management.c
@@ -47,6 +47,9 @@ int main(int argc, char **argv)
 {
   int test_result;
 
+  /* Disable the user dir for this test */
+  g_setenv ("GIMP2_DIRECTORY", "/tmp/gimpdir", TRUE);
+
   g_type_init ();
   gtk_init (&argc, &argv);
   g_test_init (&argc, &argv, NULL);



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