[glib] glib/tests/mappedfile.c: Use temp dir instead of user runtime dir



commit 3b89702bcff7ceaf699dfde0f01e684ec31fbe8b
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun Feb 16 19:44:35 2014 +0100

    glib/tests/mappedfile.c: Use temp dir instead of user runtime dir
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=724412

 glib/tests/mappedfile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/mappedfile.c b/glib/tests/mappedfile.c
index ccaea34..828a4f3 100644
--- a/glib/tests/mappedfile.c
+++ b/glib/tests/mappedfile.c
@@ -85,7 +85,7 @@ test_writable (void)
   const gchar *new = "abcdefghijklmnopqrstuvxyz";
   gchar *tmp_copy_path;
 
-  tmp_copy_path = g_build_filename (g_get_user_runtime_dir (), "glib-test-4096-random-bytes", NULL);
+  tmp_copy_path = g_build_filename (g_get_tmp_dir (), "glib-test-4096-random-bytes", NULL);
 
   g_file_get_contents (g_test_get_filename (G_TEST_DIST, "4096-random-bytes", NULL), &contents, &len, 
&error);
   g_assert_no_error (error);
@@ -129,7 +129,7 @@ test_writable_fd (void)
   int fd;
   gchar *tmp_copy_path;
 
-  tmp_copy_path = g_build_filename (g_get_user_runtime_dir (), "glib-test-4096-random-bytes", NULL);
+  tmp_copy_path = g_build_filename (g_get_tmp_dir (), "glib-test-4096-random-bytes", NULL);
 
   g_file_get_contents (g_test_get_filename (G_TEST_DIST, "4096-random-bytes", NULL), &contents, &len, 
&error);
   g_assert_no_error (error);


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