mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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
This commit is contained in:
parent
355246579e
commit
a7cc500d38
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user