Skip to content

Commit 98772cc

Browse files
committed
test-userdata-dir-invalid-home: Unset XDG_DATA_HOME
On some test environments XDG_DATA_HOME may be configured with a path that actually exists, so we unset it to actually get the temporary directory.
1 parent 1debab5 commit 98772cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libgnucash/core-utils/test/test-userdata-dir-invalid-home.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
8585
* directory in that case. */
8686
g_setenv("HOME", homedir, TRUE);
8787
g_setenv("GNC_DATA_HOME", testdatahome, TRUE);
88+
g_setenv("XDG_DATA_HOME", "", TRUE);
8889
g_free (homedir);
8990
g_free (testdatahome);
9091

0 commit comments

Comments
 (0)