projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3552465
)
Test for unexisting files in $TMP and not in $HOME
author
Emilio Pozuelo Monfort
<pochu27@gmail.com>
Tue, 23 Feb 2010 17:19:16 +0000
(18:19 +0100)
committer
Emilio Pozuelo Monfort
<pochu27@gmail.com>
Tue, 23 Feb 2010 17:37:39 +0000
(18:37 +0100)
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
gio/tests/readwrite.c
patch
|
blob
|
history
diff --git
a/gio/tests/readwrite.c
b/gio/tests/readwrite.c
index
0d56185
..
2b1bd5e
100644
(file)
--- 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;