GNOME Bugzilla – Bug 610860
test_g_file_open_readwrite fails if $HOME is unwritable
Last modified: 2010-02-23 17:39:55 UTC
Hi, The test_g_file_open_readwrite in gio/tests/readwrite.c fails if $HOME exists, but is not writable. The problem seems to be that the error is set to something else. Since some buildds in Debian have $HOME like this, I'd like to change the test to something else, like $TMP or even CWD. Attached is a patch to use $TMP by means of g_get_tmp_dir(). It makes the test pass when $HOME is not writable, and doesn't seem to cause other regressions. ($HOME here is not really the env variable but rather the entry in passwd which is what g_get_home_dir() returns).
Created attachment 154523 [details] [review] Use g_get_tmp_dir() rather than _home_dir() since $TMP sounds more reliable
Commit a7cc500d3829db1a8757ae940db09869b78bdca8