summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu27@gmail.com>2010-02-23 18:19:16 +0100
committerMatthias Clasen <mclasen@redhat.com>2010-03-13 14:22:26 -0500
commit242ccb0258d788c55aa9abe1e8c19a12ecd63459 (patch)
tree81e7050091e75fe831c5865bea26242040202e34
parentbc8a748291dbd37698564fb3417e2b7465023974 (diff)
downloadglib-242ccb0258d788c55aa9abe1e8c19a12ecd63459.tar.gz
Test for unexisting files in $TMP and not in $HOME
Some buildd environments have an unwritable $HOME, which makes the test that looks for an unexisting file there fail. Use $TMP instead, which should be more reliable. https://bugzilla.gnome.org/show_bug.cgi?id=610860 (cherry picked from commit a7cc500d3829db1a8757ae940db09869b78bdca8)
-rw-r--r--gio/tests/readwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/tests/readwrite.c b/gio/tests/readwrite.c
index 0d561851b..2b1bd5e5a 100644
--- a/gio/tests/readwrite.c
+++ b/gio/tests/readwrite.c
@@ -140,7 +140,7 @@ test_g_file_open_readwrite (void)
original_data, -1, NULL);
g_assert (res);
- path = g_build_filename (g_get_home_dir (), "g-a-nonexisting-file", NULL);
+ path = g_build_filename (g_get_tmp_dir (), "g-a-nonexisting-file", NULL);
file = g_file_new_for_path (path);
g_free (path);
error = NULL;